0.0.11 • Published 4 years ago

box-azure-migrate v0.0.11

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

box-azure-migrate

Node.js package for Migrating Files/Folders from Box Application to Azure Storage

v0.0.11

Installation

npm install box-azure-migrate --save

Getting started

1. Usage

Environment VariableRequired?Value
PROXYNoIt requires if you have proxy set up
AZURE_HOSTYesName of you storage host i.e https://xxxxxxxxxx.blob.core.windows.net
AZURE_CONTAINERYesName of the container where files will be stored
AZURE_STORAGE_ACCOUNTYesAzure Storage Account name
AZURE_STORAGE_ACCESS_KEYYesAzure Storage Access key
AZURE_STORAGE_CONNECTION_STRINGYesAzure Storage connection string
BOX_CLIENT_IDYesBox ClientID
BOX_CLIENT_SECRET_IDYesBOX CLIENT SECRET ID
BOX_ENTERPRISE_IDYesBOX ENTERPRISE ID
BOX_PARENT_FOLDERYesBOX PARENT FOLDER
BOX_PRIVATE_KEYYesBOX PRIVATE KEY
BOX_PRIVATE_KEY_PASSPHRASEYesBOX PRIVATE KEY PASSPHRASE
BOX_PUBLIC_KEY_IDYesBOX PUBLIC KEY ID

3. Usage

Method Name : migrate - Used to migrate data from your box to azure storage

var BoxAzureMigrateAPI = require('box-azure-migrate');

// All the enviornment variable mentioned will be set in .env file
const AzureURL = await BoxAzureMigrateAPI.migrate(AZURE_HOST,AZURE_CONTAINER,AZURE_STORAGE_ACCOUNT,AZURE_STORAGE_ACCESS_KEY,PROXY,BOX_CLIENT_ID,BOX_CLIENT_SECRET_ID,BOX_PRIVATE_KEY,BOX_PUBLIC_KEY_ID,BOX_PRIVATE_KEY_PASSPHRASE,BOX_ENTERPRISE_ID,BOX_PARENT_FOLDER);

if (!!AzureURL) {
    console.log("Get Azure URL ==>", AzureURL);
}

4. Usage Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

5. Usage Contributing

MIT

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.0

4 years ago