# node-b2 **Repository Path**: mirrors_Dexus/node-b2 ## Basic Information - **Project Name**: node-b2 - **Description**: Wrapper library of B2 Cloud Storage for Node.js - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-04-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README node-b2 [![npm version](https://badge.fury.io/js/node-b2.svg)](https://badge.fury.io/js/node-b2) ---- Use B2 Cloud Storage from Node.js Usage ---- const B2 = require('node-b2'); const b2app = new B2(, ); /* All functions returns Promise */ b2app.authorizeAccount(); b2app.createBucket(bucketName, isPrivateBucket); b2app.deleteBucket(bucketID); b2app.deleteFileVersion(fileName, fileID); // rangeStart and rangeEnd is optional. b2app.downloadFileByID(fileID, rangeStart, rangeEnd); b2app.downloadFileByName(bucketName, fileName, rangeStart, rangeEnd); b2app.getFileInfo(fileID); b2app.getUploadUrl(bucketID); b2app.hideFile(bucketID, fileName); b2app.listBucket(); b2app.listFileNames(bucketID, startFileName, maxFileCount); b2app.listFileVersions(bucketID, startFileName, startFileId, maxFileCount); b2app.updateBucket(bucketID, isPrivateBucket); b2app.uploadFile(bucketID, uploadFilePath); License ---- (c) 2016 nibral Released under MIT License. [http://opensource.org/licenses/mit-license.php](http://opensource.org/licenses/mit-license.php)