Gathering detailed insights and metrics for dev
Gathering detailed insights and metrics for dev
Gathering detailed insights and metrics for dev
Gathering detailed insights and metrics for dev
webpack-dev-middleware
A development middleware for webpack
webpack-dev-server
Serves a webpack app. Updates the browser on changes.
@types/webpack-dev-server
Stub TypeScript definitions entry for webpack-dev-server, which provides its own types definitions
react-dev-utils
webpack utilities used by Create React App
npm install dev
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
37 Stars
26 Commits
3 Forks
3 Watchers
1 Branches
2 Contributors
Updated on Sep 28, 2023
Latest Version
0.1.3
Package Id
dev@0.1.3
Size
4.13 kB
NPM Version
1.0.6
Node Version
v0.5.0-pre
Published on
May 22, 2011
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
As of now, this module is deprecated. It worked great for me, but it's Linux only, and now I'm on Mac.
I recommend https://github.com/remy/nodemon.
The module relies on inotify, only available for Linux.
For other OS I'd recommend supervisor or nodemon.
It autoreloads Node.JS in case of any file changes.
$ npm install dev -g
$ node-dev app.js
Starting: app.js
> server is listening on http://127.0.0.1:8080
node-dev
will rerun app.js
whenever one of the watched files is
changed.
The module is based on inotify. So, unlike most other modules of this kind, it starts watching new files automatically.
A number of additional options make the module really flexible and extendible.
npm install dev -g
Global installation is preferred to have node-dev
utility in path.
If you've installed it globally, then there is a node-dev
on path, so chdir to your app and run it:
$ node-dev app.js
Starting: app.js
> server is listening on http://127.0.0.1:8080
Then go to your IDE and edit files. node-dev
keeps your app up-to-date. The only need to switch to terminal is when there are errors.
But even if there are errors, you can switch back to IDE, correct them and node-dev
will autorestart the server again for you.
By default, files under ./public
, files with extensions .db, .dirtydb
, files and directories starting with dot .
are not watched.
The node-dev
utility is a tiny file which basically contains two lines:
var manager = require("dev")(options);
manager.start();
You can copy and modify it, or create your own, more featured autorestarter on it's base.
The options
object may have following properties:
run
: the js file to run, e.g ./app.js
, it is the only required option.watchDir
: the folder to watch recursively, default: .
ignoredPaths
[ paths ]: array of ignored paths, which are not watched, members can be:
string
, matched exactly against path, like ./public
,RegExp
, e.g an extension check: /\.gif$/
function(path)
, which takes the path and returns true
if it should be ignoreddebug
: enables additional logging output about watches and changes, default: false
logger
: custom logger object, must have error(...)
and debug(...)
methods, delegates to console.log
by default. Can use any other logger.onRunOutput
: callback function(output)
, called for stdout
data from the running processonRunError
: callback function(output)
, called for stderr
data from the running processYou can use these to send error notifications and integrate with your development environment if you wish.
This module doesn't compile/run on non-Linux OS. See the head of this file for the details.
There are limits on the number of watched files in inotify. For example, Debian has 8192 by default. In most cases, that should be enough. If it's not, and you really really need to watch so many files, then you can adjust the limit.
To change the limit:
$ echo 16384 > /proc/sys/fs/inotify/max_user_watches
Or:
$ sudo sysctl fs.inotify.max_user_watches=16364
To make the change permanent, edit the file /etc/sysctl.conf
and add this line to the end of the file:
fs.inotify.max_user_watches=16384
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 3/25 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More