@sane/command
Promisified api for shell commands and simple daemons.
Install
npm install @sane/command --save
Example
import { cmd, Daemon } from '@sane/service';
async function main() {
let repoUrl = 'https://github.com/bls/node-sane-command.git'
await cmd(['git', 'clone', repoUrl]);
let gitd = new Daemon(['git', 'daemon', '/tmp']);
await gitd.start();
await gitd.stop();
}
main()
Compatibility
Release
- Bump up the version number in package.json
- Add a section for the new release in CHANGELOG.md
- Run prepublish and test npm scripts
- Commit
- Create a git tag for the new release and push it
- Run npm publish