@mh-cbon/sp-nsi-sc

1.0.1 • Public • Published

sp-nsi-sc

Parse service file used by nsi to consume windows sc.

install

npm i @mh-cbon/sp-nsi-sc

usage

var spNsiSc = require('@mh-cbon/sp-nsi-sc')
var fs = require('fs')

fs.createReadStream('./fixtures/1.cmd')
.pipe(spNsiSc())
.on('data', function (d) {
  console.log(d);
  /*
  [ { name: 'author', value: 'me' },
  { name: 'version', value: '6.6.6' },
  { name: 'description',
    value: 'The description of whatever this script does' },
  { env: false, name: 'wd', value: 'C:\\whatever\\' },
  { env: false, name: 'cmd', value: '""' },
  { env: false, name: 'stdout', value: '""' },
  { env: false, name: 'stderr', value: '""' },
  { env: true, name: 'some', value: 'thing' },
  { env: true, name: 'else', value: 'yep' } ]
  */
})

Readme

Keywords

Package Sidebar

Install

npm i @mh-cbon/sp-nsi-sc

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mh-cbon