1.0.0 • Published 13 days ago

@rabiepenpm/maxime-nisi-fugiat v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

@rabiepenpm/maxime-nisi-fugiat 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('@rabiepenpm/maxime-nisi-fugiat');
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.

syntaxenvironmentrm -rfregular expressionstestinferencenested cssdescriptorInt32ArrayArrayBuffer#sliceeventDispatcherttyutil.inspectgradients css-0es-shimsbusytapeio-tsmake dirwordwrapeslint-pluginES2015Object.entriesfseventssymbolsansipushjsxomitstarterreducecryptWebSocketsECMAScript 7coerciblechannelprotobuffiglettypedcommandgesturesfast-clonewidthmkdirslastenumerablenameupmovehttpslockfileqsequaleast-asian-widthflattenpromisewhatwgECMAScript 2015toSortedframerhandlersfunctionsdependency managersyntaxerrorwarningrobustmodulepreprocessorpatchreact-hook-formpostcss-plugin@@toStringTagpropoptimisthooksregexbcryptformatfile systemtapsuperstructjwt__proto__propertyphonesortReflect.getPrototypeOfprettylazyconfigurablespringstableStyleSheetprivateECMAScript 2016ajaxentriesresolvetrimStartconcatMapcomputed-typeskeysclassnamesECMAScript 2017toStringTag_.extendStreamscss lessobjectArray.prototype.flatMapFloat64ArraysomewrapSetcallless compilerasyncspecfixed-widthramdacallbinderrorlogassertionboundrmfastifylookjoiAsyncIteratorspeedperformance256shrinkwrapReactiveXavaemojicollectionUint8ArraytouchwatchinginvariantframeworkchecksameValueZeroauthrfc4122installString.prototype.matchAllstylesheettranspilerfasthardlinksutilspropertieslinuxcmdECMAScript 2018Arraytacithelpersjasminepackage.jsones5MaparraytrimEndbrowsertrimLeftgetintrinsicfindupinputgenericsreadprivate dataBigUint64ArraymomentcjkpromisesdeeptostringtagES3pluginecmascriptMicrosoftWeakMapwalkfull-widthRegExp#flagsfetchfastcopyclass-validatorconcurrencyexpressruntimesharedbrowserlistmetadatareactformattingcharacterstranspilesanitizationUnderscorehasOwnjson-schema-validationsettingsassertsless.jsclientutilArrayBuffercompilerpipepreserve-symlinksjapanesetakequeueES2016curriedfast-copytraverseextensiontypescriptregexpbuffersbootstrap cssbabel-corefast-deep-clonetslibspawniteratesuperagentEScontainsless cssloggerjsonconnectsetImmediateeventEmittermruworkerRxJSsigtermdatastructurewindowsmergefindLastIndexsidekarmachaidebuggerURLstylingl10nwaites2016fileterminalcore-jstrimRightjsdiffgrouplinewrapfromthreebyteOffsetiteratorirqargparsestyleguidebrowserslistparserexit-codemkdircreateautoprefixerwatcherqueryshell.envxtermPromiseArray.prototype.filtersearchratelimitcolumnvisualdeterministiccensorpolyfilllimitRxdateimmutablejsonpathpyyamllessenvcallbackvalidationaccessibilityes8i18nUint8ClampedArrayiterationelectronnodees2018telephoneWebSocketTypedArraychromiummulti-packagedebugasciidomprototypelanguagetrimfpcorenodejsArray.prototype.findLastIndexObject.assignopensajvstyled-componentsreal-timefindLastsignalstdlibflagsdefinePropertyless mixinsdescriptionprocessprogressmonoreporeuseguidincludesoptimizerduplexbabellintapphashbyteSymbolletextendmime-dburlsObservableserializervarmodulesHyBigdpres-abstractnpmvaluesArray.prototype.findLasterror-handlingfindcode pointstddObject.valuesjson-schemaform-validationfind-upwordbreakconsumeconcatefficientECMAScript 2022awaitbluebirddefinecall-boundawesomesaucequeueMicrotaskstatelesstypedarraysObject.isdeletetypanionlimitedassignUint32ArrayECMAScript 3whichfslinkreact-testing-libraryrm -frreadablestreameslintbindexeurlFunction.prototype.namesettermatchAll$.extendJSONPushdotenvtypeerrortoArrayxdg-openposepoint-freecss nestingsanitizeparentsscheme-validationgetPrototypeOfargumentsInt8Arraybufferxdgcolumnsfast-deep-copyformlibphonenumberunicodeexpressionviewconstpackagegradients css3collection.es6websitestartweaksetwalkingwritenumberObject.fromEntriesclassesWeakSet3djsdomisConcatSpreadableopensetBigInt64Arraynegative zerosliceArrayBuffer.prototype.sliceopeneruninstalldataViewgetOwnPropertyDescriptordefaultES2018passwordjavascriptFloat32ArraysignalsequalityargsstringifierUint16Arraypackagesreact animationES2021dataviewES2023matcheseslintconfigclisharedarraybuffertyped arrayESnextJSON-Schemaairbnbbatchesintrinsicclassnamenegativedom-testing-librarydayjssequencetimesymlinksflatmimetypesperformantyupfunctionalcircularvalidateloadingpositiveoutputprotocol-buffersURLSearchParamsjson-schema-validatorexecvestIteratorwebclonerapidexecutablegraphqlreact-hooksshimes6arraybufferRegExp.prototype.flagspnpm9removeispathbundlinghasdescriptorstoobjectcompile lessrateloggingparsecodesECMAScript 2021listenersES8regularjsonschemaeditorchildindicatorCSSbannercss variablerandomES2019termTypeScriptYAMLes2017uuidtextgetoptslotECMAScript 2019animationschemezeroes2015cryptotypeofObject.definePropertystringauthenticationmkdirppackage managerutilitygroupBywritableweakmapCSSStyleDeclarationarktypeieArray.prototype.containsoffsetargumentes-shim APIsigintbyteLengththroatECMAScript 2020reducersetPrototypeOfforEachminimalwaapibootstrap lessArray.prototype.flatemitcopytasknopeidlecharacterlook-uponceharmonymochakoreanfullES5colorsworkspace:*ponyfillArray.prototype.includeslengthES2020ECMAScript 6StreamarraystsfastclonetypeglobTypeBoxastconfighttpthrottlemakechromeObjectschemaObservablesstyleredux-toolkitECMAScript 5artmiddlewareflagdiffeventsES6dirgetES2017deep-clonetestingcall-bindquerystringdependenciesbundlersorted6to5extraimportObject.getPrototypeOfsymbolcommandercomparequoteES2022wgetpicomatchcolorSymbol.toStringTagstreamsafepruneES7estreemobileinternal slotencryptionjQuerydeepclonespinnerpurecurlcolourwatchspinnersimmershebangapibreakpopmotionargvrmdirexitinstallerString.prototype.trimvalidatoraccessorconsoletypedarraylesscssdropfullwidthmaputilitieseslintpluginxhrendercss-in-jsrecursivelrustructuredCloneInt16Arrayhigher-ordergettermatcha11yregular expressionrequirefunctionreduxes7interruptstypesstylesescapemimemixinstoolkitserializationmacosrequestformscallboundinternaldragvariableswatchFilefantasy-landyamlRFC-6455jestvaluergbkeycommand-linecorsArray.prototype.flattennamestoolsfilterfolder0shamjstc39
1.0.0

13 days ago