clarified es6 vs commonjs import

This commit is contained in:
Brandon Nozaki Miller 2021-12-07 09:58:18 -08:00 committed by GitHub
parent 7a614ce9be
commit 6f265d9cb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,18 @@ A great solution for complex multiprocess **Neural Networking** in Node.JS
`npm install node-ipc@^9.0.0` `npm install node-ipc@^9.0.0`
#### including into code
```js
//es6
import ipc from 'node-ipc'
//commonjs
const ipc = require('node-ipc').default;
```
#### NPM Stats #### NPM Stats
npm info : [See npm trends and stats for node-ipc](http://npm-stat.com/charts.html?package=node-ipc&author=&from=&to=) npm info : [See npm trends and stats for node-ipc](http://npm-stat.com/charts.html?package=node-ipc&author=&from=&to=)