Skip to content

loatheb/is-native-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Is-Native-Modules

Build Status MIT Licence Open Source Love

check the module is native module or not

import

npm i --save is-native-modules
  • CommonJS

    const isNativeModules = require('is-native-modules')
  • ES6 module

    import isNativeModules from 'is-native-modules'

usage

isNativeModules('path') // true

isNativeModules('other_module') // false

isNativeModules(['path', 'fs']) // [true, true]

isNativeModules(['other_module', 'some_module']) // [false, false]

isNativeModules([['path', 'fs'], ['other_module', 'some_module']]) // [[true, true], [false, false]]

About

👻 ✨ Checking the JS module is native or not.Using the `process.binding` to connect with c++

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published