JavaScript Getter/Setter Properties List

0.2.0 · active · verified Sun Apr 19

The `get-set-props` package provides a comprehensive, machine-readable list of getter and setter properties available on standard JavaScript built-in types. This data is exposed as a simple JSON file, making it highly portable and usable across various JavaScript environments, including Node.js and browsers. Currently at version 0.2.0, its release cadence is likely infrequent, primarily tied to updates in the JavaScript specification or the underlying data source it forks from (Sindre Sorhus' `proto-props`). Its primary differentiator is its simplicity and directness: it's a static data set rather than a runtime utility, making it ideal for tooling, static analysis, or documentation generation that needs to query the reflective properties of JavaScript objects.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to import the default object and log its content, which lists getter/setter properties for various JavaScript built-in types.

import getSetProps from 'get-set-props';

console.log(getSetProps);
/*
// Example partial output:
{
	Array: [
		'length',
	],
	ArrayBuffer: [
	],
	Boolean: [],
	DataView: [
		'buffer',
		'byteLength',
		'byteOffset'
	],
	Date: [
		'timezoneOffset'
	],
	Error: [
		'stack'
	],
	Float32Array: [
		'buffer',
		'byteLength',
		'byteOffset',
		'length'
	]
}
*/

view raw JSON →