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.
npm install get-set-propsVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import the default object and log its content, which lists getter/setter properties for various JavaScript built-in types.
Understand that the package provides pre-compiled data; integrate its JSON output into your tooling or application logic for static analysis, rather than attempting to call methods on it.
For production environments, consider pinning to exact package versions (e.g., `'get-set-props': '0.2.0'`) or implement robust schema validation if your application critically depends on the precise data structure.
Ensure your Node.js environment meets the minimum requirement of version 18.0.0 or higher. Update your Node.js installation if necessary.
Access properties directly from the imported object, e.g., `getSetProps.Array` to get the list for Arrays.
To use ESM `import` statements, ensure your Node.js project's `package.json` includes `"type": "module"` or use a bundler (like Webpack, Rollup, Parcel) to transpile your code for CommonJS compatibility if targeting older environments.
No dependency data recorded yet.