Skip to content

Commit 954f756

Browse files
committed
readme tweaks
1 parent f57b831 commit 954f756

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,31 @@
33

44
> Daemonize the current Node.js process
55
6-
The module re-spawns the current process and then exits, which will lead to the new child process being adopted by `init` or similar mechanisms, effectively putting the current process into the background. Differences to the popular `daemon` module include:
6+
The module re-spawns the current process and then exits, which will lead to the new child process being adopted by `init` or similar mechanisms, effectively putting the current process into the background.
77

8-
- Fully configurable, exposes all options of `child_process.spawn`.
8+
Differences to the popular `daemon` module include:
9+
10+
- Exposes all options of `child_process.spawn`.
911
- Cleans up `process.env` after itself.
1012
- Works on Node.js >= 8.
1113

1214
## Install
1315

1416
```console
15-
$ npm install --save daemonize-process
17+
$ npm install daemonize-process
1618
```
1719

18-
## Example
20+
## Examples
1921

2022
```js
2123
require('daemonize-process')();
2224
```
2325

26+
```js
27+
import daemonizeProcess from 'daemonize-process';
28+
daemonizeProcess();
29+
```
30+
2431
## API
2532

2633
### daemonizeProcess([options])

0 commit comments

Comments
 (0)