4.7.86 • Published 11 months ago

@hishprorg/fugiat-eius v4.7.86

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@hishprorg/fugiat-eius Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Get and robustly cache all JS language-level intrinsics at first require time.

See the syntax described in the JS spec for reference.

Example

var GetIntrinsic = require('@hishprorg/fugiat-eius');
var assert = require('assert');

// static methods
assert.equal(GetIntrinsic('%Math.pow%'), Math.pow);
assert.equal(Math.pow(2, 3), 8);
assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);
delete Math.pow;
assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);

// instance methods
var arr = [1];
assert.equal(GetIntrinsic('%Array.prototype.push%'), Array.prototype.push);
assert.deepEqual(arr, [1]);

arr.push(2);
assert.deepEqual(arr, [1, 2]);

GetIntrinsic('%Array.prototype.push%').call(arr, 3);
assert.deepEqual(arr, [1, 2, 3]);

delete Array.prototype.push;
GetIntrinsic('%Array.prototype.push%').call(arr, 4);
assert.deepEqual(arr, [1, 2, 3, 4]);

// missing features
delete JSON.parse; // to simulate a real intrinsic that is missing in the environment
assert.throws(() => GetIntrinsic('%JSON.parse%'));
assert.equal(undefined, GetIntrinsic('%JSON.parse%', true));

Tests

Simply clone the repo, npm install, and run npm test

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.

curriedbyteRxJScoerciblefunctionsinferenceprocessartserverautoprefixercollection.es6swfchromiumES2018elasticacheWebSocketsjsonschemamergepruneperformantexpressMicrosoftArray.prototype.findLastcomparehookformcolumnObject.isTypedArrayreact-hook-formformtypeerroreventsdotenvroute53performancecollectionmonorepofetchbabelwidthObject.getPrototypeOfjsxdomarktypestylingdynamodbstringexpressionconcatcodesaccessibilityrdstranspilerfull-widthwafaccessortelephoneobjnodejssafemobileES2016flatMapcloudwatchreal-timefindupqspoint-freevisualfast-deep-clonefplogurlfindLasttoStringTagECMAScript 6ttyendertapinternal slotprotoES2017higher-ordersameValueZeroanimationdescriptiontoReversedhardlinksreact-hooksCSSStyleDeclarationinspectrm -rfglobalcallbackwalkingresolveinternalStreamissearchdeep-cloneenvironmenttoArraycode pointsworkspace:*rm -frutilsmulti-package-0$.extendtoolstypedarraysprefixeventDispatcherstarterefficient_.extendtesterECMAScript 7immerweakmapdropprotobufFloat32ArrayObject.assignReflect.getPrototypeOfschemewritechildstructuredClonepushES8matchlanguageproxyReactiveXES2020gestureswarningmake dirgroupmodulecolorslibphonenumberpropertiesHyBiavamomentwhatwgjsprotocol-buffersMapreworknativeES2023chinesees7toolkithelperszodawscloudtrailsortedpropertycircularformsArrayBuffer#sliceoncedeepcopyargvnpmignorebuffertc39patchcommand-lineiteratortapefastifyjson-schema-validatorvarsbusyRFC-6455fastsymbolcloudfrontdirES2022call-bindspawnoptimizerenvnumberutilityformatquerystringES3Symbol.toStringTagtddphoneeast-asian-width__proto__bundlerbyteLengthtrimStartInt8ArrayreadableslotString.prototype.matchAlldependenciesincludeses2016modulesparserflagvalidationtranspileajaxacornbannerhas-owndeepclonevalidatorbinarieslockfileequalforkstringifierbyteOffsetUnderscorereadablestreamtraverseentriesECMAScript 2018ObservablesubprocessassertshttpservicetypedarrayTypeBoxpolyfillAsyncIteratorintrinsica11yasterisksFloat64ArrayReactiveExtensionsObject.valuesInt32Arraypostcss-plugines2018ES2015serializermanipulationarraysfullebsuninstallcore-jswalkelectronfind-upsetImmediatestyleguideiehasOwnBigUint64ArrayArray.prototype.flatMapgetsharedStreamskoreanbinpostcssfantasy-landeventEmitterdebugapptypesfeedlocalminimalreactparentsbundlingroutingletvest0writablegetterreducemockingimporttspipecreatereverseddifftrimLeftproprangeerrores8.gitignoregetPrototypeOfjshint256directoryisConcatSpreadablequotejson-schemaenvironmentsclassnamecall-boundownruntimeforEachbddECMAScript 3preprocessores-shimsjavascriptlookstyled-componentsRegExp#flagshelperserializeArray.prototype.findLastIndexsinatraec2transformpromiserandomcallbindargumentfast-copyqueryterminalconfigurableclass-validatorformattingstreamsstreamansifpsvpcsymbolsjapaneseYAMLdatajestmapregular expressionsECMAScript 2021installerarrayArrayBuffer.prototype.slicextermeslintoffsetfindeverymrumochaconcatMapSetpackagetypescriptoutputmkdirSymbolsliceeffect-tsrgbECMAScript 2016xhridreverseObjectdateWeakSetbindmkdirpgroupByomitamazoncssmkdirsnametestingcoveragees5lastasyncCSShashcacheloadingloggingObject.keyschromedefineArrayBufferconsts3guidsetPrototypeOfweaksetvariablesObject.fromEntriescheckArray.prototype.containswaitrmdirrestmetadatapathrouterrulesnamesimmutablethreejQueryreadignoreES6ESspinnersexecdragreducer@@toStringTageslintconfigpicomatchArray.prototype.filterhasOwnPropertykeyseslint-pluginECMAScript 2020typeofserializationgetOwnPropertyDescriptoremitnegative zeroponyfillyuparraybuffercharacterscensortrimhtmllengthrequireFunction.prototype.nameECMAScript 5invarianttypanionvalidatesyntaxerrorroutedataViewgetoptcss-in-jsparentinstallbuffersastuser-streamsUint32Arrayseti18nshellsetterpackagesawesomesauceistanbulatomvaluesUint16Arrayes6regexpcliInt16Arrayxmlemr[[Prototype]]dataviewqueueprettytoobjectfast-deep-copydescriptorsWeakMappackage managerECMAScript 2017ES2019cjkidentifiersstringifydeepprivate dataeslintpluginfullwidthgenericsfunctionalES2021util.inspectdayjsfast-clonereact-testing-librarycomputed-typesemojifnmatchtypesafeequalitychaimapreduceespluginlocationprogressassertreduxcloudformationloggerregexextrasesTypeScriptObservablesArray.prototype.flatasciielbchannelcopyconsumeindicatortouches2015timespecdeep-copyrmclassnamestrimEndsnsnpmshebangdebuggerschematostringtag.envglobalsinUint8ClampedArrayio-tsfastcloneshamexecutewgetoptionbinarygdprjsdomflattennodeArray.prototype.flattenvalueinputmatchesspringtextURLSearchParamsfront-endtyped arrayidleextendsortmatchAllrfc4122privateyamlfile systemJSONsharedarraybuffernopeenumerablehascolourregular expressionsqspackage.jsonshrinkwraprecursiveoptimistsymlinkslinkes-abstracttrimRightunicodewhichupharmonyajvreact posecharacterscheme-validationmakehookszxairbnbES5deterministiclintapolloiterateredux-toolkitESnextsimpledbdom-testing-libraryfunction.length
4.7.86

11 months ago

4.7.85

11 months ago

4.7.84

11 months ago

4.7.83

11 months ago

4.7.82

11 months ago

4.7.81

11 months ago

4.7.80

11 months ago

4.7.79

11 months ago

4.7.78

11 months ago

4.7.77

11 months ago

4.7.76

11 months ago

4.7.75

11 months ago

4.7.74

11 months ago

4.6.74

11 months ago

4.6.73

11 months ago

3.6.73

11 months ago

3.6.72

11 months ago

3.6.71

11 months ago

2.6.71

11 months ago

2.6.70

11 months ago

2.6.69

11 months ago

2.6.68

11 months ago

2.6.67

12 months ago

2.6.66

12 months ago

2.6.65

12 months ago

2.6.64

12 months ago

2.6.63

12 months ago

2.5.63

12 months ago

2.5.62

12 months ago

2.5.61

12 months ago

2.5.60

12 months ago

2.5.59

12 months ago

2.5.58

12 months ago

2.5.57

12 months ago

2.5.56

12 months ago

2.5.55

12 months ago

2.5.54

12 months ago

2.5.53

12 months ago

2.5.52

12 months ago

2.5.51

12 months ago

2.5.50

12 months ago

2.5.49

12 months ago

2.5.48

1 year ago

2.5.47

1 year ago

2.5.46

1 year ago

2.5.45

1 year ago

2.5.44

1 year ago

2.4.44

1 year ago

2.4.43

1 year ago

2.4.42

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

2.4.39

1 year ago

2.4.38

1 year ago

2.4.37

1 year ago

2.4.36

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

1.4.32

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.29

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.24

1 year ago

1.4.23

1 year ago

1.4.22

1 year ago

1.4.21

1 year ago

1.4.20

1 year ago

1.4.19

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago