Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-native

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-native - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

index.js

39

package.json
{
"name": "is-native",
"version": "0.0.0",
"version": "1.0.0",
"description": "Checks if the given value is a native function.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"lint": "jshint index.js",
"pretest": "npm run lint",
"test": "mocha -R spec",
"test:cov": "rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec",
"test:rpt": "npm run test:cov && coveralls < ./test/coverage/lcov.info",
"prepublish": "npm test"
},
"keywords": [
"is",
"check",
"checks",
"detect",
"native",
"function",
"fn",
"type"
],
"author": {
"name": "bubkoo",
"email": "bubkoo.wy@gmail.com"
},
"license": "MIT",
"repository": {

@@ -13,8 +33,17 @@ "type": "git",

},
"author": "bubkoo <bubkoo.wy@gmail.com> (https://github.com/bubkoo)",
"license": "MIT",
"bugs": {
"url": "https://github.com/bubkoo/is-native/issues"
},
"homepage": "https://github.com/bubkoo/is-native#readme"
"homepage": "https://github.com/bubkoo/is-native#readme",
"devDependencies": {
"jshint": "^2.9.1",
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"istanbul": "^0.4.2",
"mocha": "^2.4.5"
},
"dependencies": {
"is-nil": "^1.0.0",
"to-source-code": "^1.0.0"
}
}
# is-native
Checks if the given value is a native function.
> Checks if the given value is a native function.
[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/bubkoo/is-native/blob/master/LICENSE)
[![build:?](https://img.shields.io/travis/bubkoo/is-native/master.svg?style=flat-square)](https://travis-ci.org/bubkoo/is-native)
[![coverage:?](https://img.shields.io/coveralls/bubkoo/is-native/master.svg?style=flat-square)](https://coveralls.io/github/bubkoo/is-native)
## Install
```
$ npm install --save is-native
```
## Usage
```js
var isNative = require('is-native');
isNative(Math.min); // => true
isNative(console.log); // => true
isNative(function () { console.log(123); });
// => false
```
## Related
- [to-source-code](https://github.com/bubkoo/to-source-code.git) - Converts function to its source code.
- [is-nil](https://github.com/bubkoo/is-nil) - Checks if the given value is null or undefined.
- [is-null](https://github.com/bubkoo/is-null) - Checks if the given value is null.
- [is-window](https://github.com/bubkoo/is-window) - Checks if the given value is a window object.
- [is-array-like](https://github.com/bubkoo/is-array-like) - Checks if the given value is an array or an array-like object.
- [is-index](https://github.com/bubkoo/is-index) - Checks if the given value is a valid array-like index.
- [is-length](https://github.com/bubkoo/is-length) - Checks if the given value is a valid array-like length.
## Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please [create an issue](https://github.com/bubkoo/is-native/issues/new).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc