Package Exports
- limelight-filemanager
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (limelight-filemanager) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
limelight-filemanager
LimeLight nodejs library for publishing files
const LimeLightFileManager = require('limelight-filemanager');
const fs = require('fs');
var llfm = new LimeLightFileManager({
username: '',
password: '',
api: 'https://{username}.upload.llnw.net/',
expiry: 3600, //Credentials expiry
//subdir: '/llfm'
});
(async function () {
try {
var login = await llfm.login();
console.log(login);
var uploaded = await llfm.upload({
body: fs.readFileSync('test.js'),
path: 'llfm/test.js'
});
console.log(uploaded);
var list = await llfm.list('llfm/');
console.log(list);
/*
var deleted = await llfm.delete('llfm/test.js');
console.log(deleted);*/
}
catch (e) {
console.error(e);
}
})();