{"id":29760776,"url":"https://github.com/revan-zhang/is-native-modules","last_synced_at":"2025-07-26T20:14:54.200Z","repository":{"id":57277404,"uuid":"88951856","full_name":"revan-zhang/is-native-modules","owner":"revan-zhang","description":":ghost: :sparkles: Checking the JS module is native or not.Using the `process.binding` to connect with c++","archived":false,"fork":false,"pushed_at":"2017-05-02T01:10:46.000Z","size":10,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T11:44:42.644Z","etag":null,"topics":["module","native","native-module"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revan-zhang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-21T06:51:39.000Z","updated_at":"2023-03-04T05:48:35.000Z","dependencies_parsed_at":"2022-09-18T15:51:15.498Z","dependency_job_id":null,"html_url":"https://github.com/revan-zhang/is-native-modules","commit_stats":null,"previous_names":["loatheb/is-native-module","revan-zhang/is-native-modules","loatheb/is-native-modules"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/revan-zhang/is-native-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revan-zhang%2Fis-native-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revan-zhang%2Fis-native-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revan-zhang%2Fis-native-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revan-zhang%2Fis-native-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revan-zhang","download_url":"https://codeload.github.com/revan-zhang/is-native-modules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revan-zhang%2Fis-native-modules/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267226538,"owners_count":24056346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["module","native","native-module"],"created_at":"2025-07-26T20:14:51.810Z","updated_at":"2025-07-26T20:14:54.180Z","avatar_url":"https://github.com/revan-zhang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Is-Native-Modules\n[![Build Status](https://travis-ci.org/loatheb/is-native-modules.svg?branch=master)](https://travis-ci.org/loatheb/is-native-modules) [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)   [![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badge/)    \n\u003e check the module is native module or not\n\n### import\n\n```shell\nnpm i --save is-native-modules\n```\n\n* CommonJS\n\n  ```js\n  const isNativeModules = require('is-native-modules')\n  ```\n\n* ES6 module\n \n  ```js\n  import isNativeModules from 'is-native-modules'\n  ```\n\n### usage\n\n```js\nisNativeModules('path') // true\n\nisNativeModules('other_module') // false\n\nisNativeModules(['path', 'fs']) // [true, true]\n\nisNativeModules(['other_module', 'some_module']) // [false, false]\n\nisNativeModules([['path', 'fs'], ['other_module', 'some_module']]) // [[true, true], [false, false]]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevan-zhang%2Fis-native-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevan-zhang%2Fis-native-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevan-zhang%2Fis-native-modules/lists"}