Comparing version 0.0.0 to 1.0.0
{ | ||
"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). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5308
4
43
0
48
0
2
5
+ Addedis-nil@^1.0.0
+ Addedto-source-code@^1.0.0
+ Addedis-nil@1.0.1(transitive)
+ Addedto-source-code@1.0.2(transitive)