
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
Yarn
yarn global add dsmcdn
Npm
npm install -g dsmcdn
Yarn
npm install dsmcdn
Npm
yarn add dsmcdn
Usage: dsmcdn -t [str] -e [str] -f [str[]] -u [str]
-p [pwd]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-t team directory [required]
-e environment directory [required]
-b build version
-d Absolute directory
-f list of files [array] [required]
-u sftp username [required]
-p sftp password [required]
-h sftp host
-w sftp port
Basic Usage
dsmcdn -u username -p password -t mobileweb -e develop -f library.js
Uploads library js to cdn with with /username/mobileweb/develop/library.js
With Build Number
dsmcdn -u username -p password -t mobileweb -e develop -b 123 -f library.js
Uploads library js to cdn with with /username/mobileweb/develop/123/library.js
Absolute Directory
dsmcdn -u username -p password -t mobileweb -e develop -d /absolute -f library.js
Uploads library js to cdn with with /username/absolute/library.js
Multiple Files
dsmcdn -u username -p password -t mobileweb -e develop -f library.js anotherlibrary.js
Uploads library js to cdn with with /username/mobileweb/develop/library.js
Uploads library js to cdn with with /username/mobileweb/develop/anotherlibrary.js
Options
const dsmcdn = require('dsmcdn');
const options = {
team: 'mobileweb',
environment: 'dev,
buildVersion: '123', //optional
user: 'username',
password: 'password',
}
Single file
dsmcdn.upload('~/acg/desktop/index.js', options);
Array of files
dsmcdn.upload(['~/acg/desktop/index.js', '~/acg/desktop/library.json'], options);
Object for custom configuration
dsmcdn.upload({
source: '~/acg/desktop/index.js',
remote: 'index.min.js'
}, options);
//File will be available with url: `/username/mobileweb/dev/index.min.js`
Multiple objects for custom configuration
dsmcdn.upload([
{
source: '~/acg/desktop/index.js',
remote: 'index.min.js'
},
{
source: '~/acg/desktop/library.json',
remote: 'library.min.json'
}
], options);
//File will be available with url: `/username/mobileweb/dev/index.min.js`
//File will be available with url: `/username/mobileweb/dev/library.min.json
FAQs
Upload your files easily
We found that dsmcdn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.