Check if a node module contains native code.
const isNative = require('is-native-module')
const pkg = require('./package.json')
console.log(isNative(pkg))
$ cd module/
$ is-native-module
$ echo $?
0 # native module
$ npm install [-g] is-native-module
MIT