cloudrive
wrapers for cloud storage API (onedrive, ...) for Node and browser.
Usage
- install
npm install cloudrive
- import to your code
const { OneDrive } = require('cloudrive')
- upload plain text
// Your onedrive oauth access token const tok = processenvONE_DRIVE_TOKEN const api = tok const dest = `test/hello.txt` const content = 'hello world' const res = await api if resok console elese console
- upload image
// Your onedrive oauth access token const tok = processenvONE_DRIVE_TOKEN const api = tok const dest = `test/hello.jpeg` const content = fs const res = await api if resok console elese console
- download a file
// Your onedrive oauth access token const tok = processenvONE_DRIVE_TOKEN const api = tok const res = await api if resok console elese console