Gathering detailed insights and metrics for get-intrinsic
Gathering detailed insights and metrics for get-intrinsic
Gathering detailed insights and metrics for get-intrinsic
Gathering detailed insights and metrics for get-intrinsic
@types/get-intrinsic
TypeScript definitions for get-intrinsic
call-bound
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
get-intrinsic-ohos
Get and robustly cache all JS language-level intrinsics at first require time
@nodefill/primordials
🧊 The native primordials object from Node.js for anywhere
Get and robustly cache all JS language-level intrinsics at first require time.
npm install get-intrinsic
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
27 Stars
107 Commits
4 Forks
2 Watchers
1 Branches
2 Contributors
Updated on May 31, 2025
Latest Version
1.3.0
Package Id
get-intrinsic@1.3.0
Unpacked Size
45.45 kB
Size
13.48 kB
File Count
9
NPM Version
10.9.2
Node Version
23.8.0
Published on
Feb 22, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
10
Get and robustly cache all JS language-level intrinsics at first require time.
See the syntax described in the JS spec for reference.
1var GetIntrinsic = require('get-intrinsic');
2var assert = require('assert');
3
4// static methods
5assert.equal(GetIntrinsic('%Math.pow%'), Math.pow);
6assert.equal(Math.pow(2, 3), 8);
7assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);
8delete Math.pow;
9assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);
10
11// instance methods
12var arr = [1];
13assert.equal(GetIntrinsic('%Array.prototype.push%'), Array.prototype.push);
14assert.deepEqual(arr, [1]);
15
16arr.push(2);
17assert.deepEqual(arr, [1, 2]);
18
19GetIntrinsic('%Array.prototype.push%').call(arr, 3);
20assert.deepEqual(arr, [1, 2, 3]);
21
22delete Array.prototype.push;
23GetIntrinsic('%Array.prototype.push%').call(arr, 4);
24assert.deepEqual(arr, [1, 2, 3, 4]);
25
26// missing features
27delete JSON.parse; // to simulate a real intrinsic that is missing in the environment
28assert.throws(() => GetIntrinsic('%JSON.parse%'));
29assert.equal(undefined, GetIntrinsic('%JSON.parse%', true));
Simply clone the repo, npm install
, and run npm test
Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More