Skip to content

JS library for file management in a browser (chrome & edge) sandbox

License

Notifications You must be signed in to change notification settings

FNNDSC/sandboxjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sandboxjs

Is a JS library for file management in a browser (chrome & edge) sandbox

To use as a npm package

$> npm install sanboxjs

Import in your app.js

import sandbox from 'sanboxjs'

Push multiple files into browser sandbox

var sbx = new sandbox();
var uploadDir = 'my/uploads/'
sbx.writeFile(files,uploadDir)

Download a file from the sandbox

sbx.downloadFile('my/uploads/my-file.txt');

TLDR: To run this app:

Clone from GitHub

git clone https://github.com/FNNDSC/sandboxjs
cd sandboxjs

Parcel is a tool to bundle and serve code. Install parcel-bundler as a dev dependency:

npm install parcel-bundler@1.12.5 --save-dev

Now, verify that your project is working :

$npm run dev

Then navigate to http://localhost:1234/ with your browser (currently Chrome & Edge only).

About

JS library for file management in a browser (chrome & edge) sandbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published