π Slim Demon is a micro library that detects changes in the files of your NodeJS application and restart it quickly and automatically.
npm install slim-demon

π Slim Demon is a micro library that detects changes in the files of your NodeJS application and restart it quickly and automatically.
You can define a directory and one or more types of files that will be listened to, if any of these files change the application will be restarted quickly and automatically.
``bash`
npm i slim-demon --save-dev
Include the demon configuration in your main package.json file.
Property | Type | Description
-------- | ---- | -------
rootDirectory | string | The main folder of your NodeJS Application.
extensionsFile | Array
mainApplication | string |Command to execute when a change is detected in the files.
#### Example
`json`
"demon": {
"rootDirectory": "./src",
"extensionsFile": [
"js"
],
"mainApplication": "npm run start"
}
Include the following sentence into your scripts of your packate.json file:
`json`
"scripts": {
"start:watch": "node node_modules/slim-demon"
}
Run this command in your terminal.
`bash`
$npm run start:watch
`any`
/
βββ assets π # Images Sources.
βββ doc # QAC Documentation.
βββ example # Local example.
βββ src π¦ # Main file library.
βββ ...
For review and update all npm dependencies of this project you need install in global npm package "npm-check-updates" npm module.
`bash``Install and Run
$npm i -g npm-check-updates
$ncu
Created with JavaScript, lot of β€οΈ and a few βοΈ