npm install aem-slang``shell`
npm install aem-slang --save-dev
js
var slang = require('aem-slang');slang.setOptions({
port: 4503,
host: 'localhost'
});
slang.up('file.js').then(function(status) {
// any action for after successful upload
}).catch(function(err) {
// handle error
});
`Options
If #setOptions is not called before #up, it falls back to defaults
$3
Type: string
Default: localhosthostname to running sling instance.
$3
Type: number
Default: 4502Port for running sling instance.
$3
Type: string
Default: adminUsername for authentication.
$3
Type: string
Default: adminPassword for authentication.
Development
Clone this repo, then npm installafter any changes, run
npm run build` to compile