From 6f265d9cb0c09b307c6fd060efacb4524c3e6d1d Mon Sep 17 00:00:00 2001 From: Brandon Nozaki Miller Date: Tue, 7 Dec 2021 09:58:18 -0800 Subject: [PATCH] clarified es6 vs commonjs import --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 7d204fa..8aa30a0 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,18 @@ A great solution for complex multiprocess **Neural Networking** in Node.JS `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 info : [See npm trends and stats for node-ipc](http://npm-stat.com/charts.html?package=node-ipc&author=&from=&to=)