daemon.js
v0.0.1
Published
A small yet powerful library to create and manage services on Windows.
Maintainers
Readme
daemon.js
A lightweight and customizable daemon registry which allows you to create and manage daemons on Windows with the help of WinSW.
Features
- Minimal and easy-to-use API
- Fully modular and ES Module ready
- TypeScript type definitions included
Installation
npm install daemon.jsUsage
import Daemon from "daemon.js";
import { resolve } from "path";
const daemon = new Daemon({
name: 'MyDaemon',
displayName: 'My Daemon',
script: resolve('index.js')
});
await daemon.install();Example with DaemonRegistry:
import { DaemonRegistry } from "daemon.js";
import { resolve } from "path";
const daemon = DaemonRegistry.register('MyDaemon', {
displayName: 'My Daemon',
script: resolve('index.js')
});License
GNU General Public License v2.0. See LICENCE for details.
