https://github.com/icfnext/slang
standalone slang
https://github.com/icfnext/slang
Last synced: 9 months ago
JSON representation
standalone slang
- Host: GitHub
- URL: https://github.com/icfnext/slang
- Owner: icfnext
- License: mit
- Created: 2016-05-31T19:11:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-31T21:49:39.000Z (about 10 years ago)
- Last Synced: 2024-04-24T16:04:44.804Z (about 2 years ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aem-slang
==============
## Install
```shell
npm install aem-slang --save-dev
```
## Example
```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
### host
Type: `string`
Default: `localhost`
hostname to running sling instance.
### port
Type: `number`
Default: `4502`
Port for running sling instance.
### username
Type: `string`
Default: `admin`
Username for authentication.
### password
Type: `string`
Default: `admin`
Password for authentication.
## Development
Clone this repo, then `npm install`
after any changes, run `npm run build` to compile