0.0.4 • Published 7 years ago

windows-services v0.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

Node Windows Services

This project is used to create windows service for you custom project. It combines node-windows with config to create a configurated windows service.

So you can create a service combined with a config/default.json, see config documentation, to prevent node-windows code duplication.

Examples:

Without windows-services:

Project-01:

const service = new Service({
    name: 'My Service01',
    description: 'My Description for project 01',
    script: 'indexProject01.js'
})

Project-02:

const service = new Service({
    name: 'My Service02',
    description: 'My Description for project 02',
    script: 'indexProject02.js'
})

To create a configurated app whose can be create his own windows-service: Set configuration file in /config/default.json:

{
  "service" : {
    "name" : "My Service Name",
    "description" : "My Service Description",
    "script" : "index.js"
  }
}

and create a file to install service, for example:

const windowsService = require('windows-services')

windowsService.install()
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago