Skip to content

juliangruber/is-native-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-native-module

Check if a node module contains native code.

Usage

const isNative = require('is-native-module')

const pkg = require('./package.json')
console.log(isNative(pkg))
$ cd module/
$ is-native-module
$ echo $?
0 # native module

Installation

$ npm install [-g] is-native-module

API

isNative(pkg)

License

MIT