@sane/command
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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();
  //
  // Code requiring local git daemon goes here...
  // 
  await gitd.stop();
}

main()

Compatibility

  • Requires Node >= v4.0.0

Release

  1. Bump up the version number in package.json
  2. Add a section for the new release in CHANGELOG.md
  3. Run prepublish and test npm scripts
  4. Commit
  5. Create a git tag for the new release and push it
  6. Run npm publish

Readme

Keywords

Package Sidebar

Install

npm i @sane/command

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sane