is-get-set-prop
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"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 | ||
[![NPM version](https://badge.fury.io/js/is-get-set-prop.svg)](https://badge.fury.io/js/is-get-set-prop) [![Build Status](https://travis-ci.org/dustinspecker/is-get-set-prop.svg)](https://travis-ci.org/dustinspecker/is-get-set-prop) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/is-get-set-prop.svg)](https://coveralls.io/r/dustinspecker/is-get-set-prop?branch=master) | ||
[![NPM version](https://badge.fury.io/js/is-get-set-prop.svg)](https://badge.fury.io/js/is-get-set-prop) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/is-get-set-prop.svg)](https://coveralls.io/r/dustinspecker/is-get-set-prop?branch=main) | ||
[![Code Climate](https://codeclimate.com/github/dustinspecker/is-get-set-prop/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/is-get-set-prop) [![Dependencies](https://david-dm.org/dustinspecker/is-get-set-prop.svg)](https://david-dm.org/dustinspecker/is-get-set-prop/#info=dependencies&view=table) [![DevDependencies](https://david-dm.org/dustinspecker/is-get-set-prop/dev-status.svg)](https://david-dm.org/dustinspecker/is-get-set-prop/#info=devDependencies&view=table) | ||
[![Code Climate](https://codeclimate.com/github/dustinspecker/is-get-set-prop/badges/gpa.svg)](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) |
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
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
0
Yes
3861
16
43
+ Addedget-set-props@0.2.0(transitive)
+ Addedlowercase-keys@3.0.0(transitive)
- Removedget-set-props@0.1.0(transitive)
- Removedlowercase-keys@1.0.1(transitive)
Updatedget-set-props@^0.2.0
Updatedlowercase-keys@^3.0.0