Skip to content

Commit d852221

Browse files
committed
readme updates
1 parent b36abdb commit d852221

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# daemonize-process
2-
[![](https://img.shields.io/npm/v/daemonize-process.svg?style=flat)](https://www.npmjs.org/package/daemonize-process) [![](https://img.shields.io/npm/dm/daemonize-process.svg)](https://www.npmjs.org/package/daemonize-process) [![](https://api.travis-ci.org/silverwind/daemonize-process.svg?style=flat)](https://travis-ci.org/silverwind/daemonize-process)
2+
[![](https://img.shields.io/npm/v/daemonize-process.svg?style=flat)](https://www.npmjs.org/package/daemonize-process) [![](https://img.shields.io/npm/dm/daemonize-process.svg)](https://www.npmjs.org/package/daemonize-process)
33

44
> Daemonize the current Node.js process
55
@@ -9,22 +9,18 @@ Differences to the popular `daemon` module include:
99

1010
- Exposes all options of `child_process.spawn`.
1111
- Cleans up `process.env` after itself.
12-
- Works on Node.js >= 8.
12+
- Works on Node.js >= 10.
1313

1414
## Install
1515

1616
```console
17-
$ npm install daemonize-process
17+
$ npm i daemonize-process
1818
```
1919

2020
## Examples
2121

2222
```js
23-
require('daemonize-process')();
24-
```
25-
26-
```js
27-
import daemonizeProcess from 'daemonize-process';
23+
const daemonizeProcess = require('daemonize-process');
2824
daemonizeProcess();
2925
```
3026

0 commit comments

Comments
 (0)