is-native-modules

1.0.3 • Public • Published

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]]
 

Readme

Keywords

Package Sidebar

Install

npm i is-native-modules

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • zhang-zhao