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

is-get-set-prop

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-get-set-prop - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

src/index.js

54

package.json
{
"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)

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