is-get-set-prop
Advanced tools
Comparing version
{ | ||
"name": "is-get-set-prop", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Does a JS type have a getter/setter property", | ||
"main": "lib/index.js", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"test": "gulp test", | ||
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" | ||
"lint": "eslint .", | ||
"test": "npm run lint && c8 ava" | ||
}, | ||
"repository": "dustinspecker/is-get-set-prop", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dustinspecker/is-get-set-prop.git" | ||
}, | ||
"keywords": [ | ||
@@ -25,31 +28,28 @@ "js", | ||
}, | ||
"type": "module", | ||
"engines": { | ||
"node": "> 18.0.0" | ||
}, | ||
"license": "MIT", | ||
"files": [ | ||
"lib" | ||
"src" | ||
], | ||
"dependencies": { | ||
"get-set-props": "^0.1.0", | ||
"lowercase-keys": "^1.0.0" | ||
"get-set-props": "^0.2.0", | ||
"lowercase-keys": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.0.12", | ||
"babel-eslint": "^4.1.3", | ||
"babel-preset-es2015": "^6.0.12", | ||
"chai": "^3.0.0", | ||
"coveralls": "^2.11.2", | ||
"del": "^2.0.0", | ||
"eslint-config-dustinspecker": "^0.1.0", | ||
"eslint-path-formatter": "^0.1.1", | ||
"eslint-plugin-no-use-extend-native": "^0.1.4", | ||
"gulp": "^3.9.0", | ||
"gulp-alex": "^1.0.0", | ||
"gulp-babel": "^6.0.0", | ||
"gulp-eslint": "^1.0.0", | ||
"gulp-if": "^2.0.0", | ||
"gulp-istanbul": "^0.10.0", | ||
"gulp-jscs": "^3.0.0", | ||
"gulp-jshint": "^1.11.0", | ||
"gulp-mocha": "^2.1.0", | ||
"gulp-plumber": "^1.0.1" | ||
"@eslint/js": "^9.4.0", | ||
"ava": "^6.1.3", | ||
"c8": "^9.1.0", | ||
"eslint": "^9.4.0", | ||
"globals": "^15.3.0", | ||
"gulp-if": "^2.0.0" | ||
}, | ||
"c8": { | ||
"reporter": [ | ||
"lcov", | ||
"text" | ||
] | ||
} | ||
} |
# is-get-set-prop | ||
[](https://badge.fury.io/js/is-get-set-prop) [](https://travis-ci.org/dustinspecker/is-get-set-prop) [](https://coveralls.io/r/dustinspecker/is-get-set-prop?branch=master) | ||
[](https://badge.fury.io/js/is-get-set-prop) [](https://coveralls.io/r/dustinspecker/is-get-set-prop?branch=main) | ||
[](https://codeclimate.com/github/dustinspecker/is-get-set-prop) [](https://david-dm.org/dustinspecker/is-get-set-prop/#info=dependencies&view=table) [](https://david-dm.org/dustinspecker/is-get-set-prop/#info=devDependencies&view=table) | ||
[](https://codeclimate.com/github/dustinspecker/is-get-set-prop) | ||
@@ -29,17 +29,2 @@ > Does a JS type have a getter/setter property | ||
### ES5 | ||
```javascript | ||
var isGetSetProp = require('is-get-set-prop'); | ||
isGetSetProp('array', 'length'); | ||
// => true | ||
isGetSetProp('ARRAY', 'push'); | ||
// => false | ||
// is-get-set-prop can only verify native JS types | ||
isGetSetProp('customObject', 'customGetterOrSetter'); | ||
// => false; | ||
``` | ||
## API | ||
@@ -46,0 +31,0 @@ ### isGetSetProp(type, propertyName) |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6
-68.42%0
-100%Yes
NaN3861
-25.81%16
-20%43
-25.86%+ Added
+ Added
- Removed
- Removed
Updated
Updated