1.0.0 • Published 13 days ago

@f1stnpm2/laborum-earum-porro v1.0.0

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

@f1stnpm2/laborum-earum-porro Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES spec-proposal-compliant Object.fromEntries shim. Invoke its "shim" method to shim Object.fromEntries if it is unavailable or noncompliant.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the proposed spec.

Most common usage:

var assert = require('assert');
var fromEntries = require('@f1stnpm2/laborum-earum-porro');

var obj = { a: 1, b: 2, c: 3 };
var actual = fromEntries(Object.entries(obj));

assert.deepEqual(obj, actual);

if (!Object.fromEntries) {
	fromEntries.shim();
}

assert.deepEqual(Object.fromEntries(Object.entries(obj)), obj);

Tests

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

pyyamlwatchersuperstructbuffermovereadableECMAScript 3throttlechinesebundlerbyteLengthtsescapees5descriptorselectronES7serialization0dataViewoptiona11yqueueMicrotasktapcallbindworkerrmdirrfc4122promisenested csscolorsECMAScript 2017createtesternpmframerarraybufferstreamstrimRighttaskopenrangeerrorwarningjapanesemixinsvariablestypedarraysortsomeECMAScript 2021concatMapmakeassignpackageArrayBuffer#sliceES2017fantasy-landtypescriptcompilerlazyfastcopyvalidatorchaihardlinksemojiObject.assigntimevaluesmake dirasyncweaksetdependenciesparentwalkclonezodfpgraphqlresolvechromiumworkspace:*diffiteratoreslintpluginYAMLmochatestfind-upposewatchFilecallbackstylesheetguidgenericsbyteOffsetWebSocketES2020spinnerconfigrequestcore-jsmkdirpcopyappincludesvariables in cssmaputilityinstallhashflagscurlreact-testing-librarycssintrinsiccss lessless cssvalueeast-asian-widthhasnegativeassertconnectObject.valuesjsxECMAScript 2016css nestingsharedexit-codeawesomesaucefullwidthstringifiersyntaxWeakSettrimEndclassnamesReactiveXquoteestreeInt8ArrayUint8ClampedArrayredactECMAScript 2020bootstrap cssStreamcollection.es6urldefaultboundstringifyrateoptimizer[[Prototype]]columnpathphoneES2015flatdeepclonemruJSON-SchematoStringTagPushmergeasciihooksclass-validatorbannerwidthqueryinterruptsfixed-widthArray.prototype.findLastreact-hook-formslotremovetacitcollectionparentsisargsformattingthreesettingsSetfast-deep-copyargparsehookformstartercommand-linebusy$.extendES6babelpnpm9ratelimitbindisConcatSpreadablecryptodeep-cloneiefseventsformsidESStreamsmoduletypeerrorwindowsemitprivategettereventsmatchAllenvparseextensionjoiIteratorreduxArray.prototype.flatStyleSheethelpersECMAScript 2019UnderscorePromiselinkgetOwnPropertyDescriptorfastspinnersprotocol-bufferstypedependency managerrequireefficientSymbol.toStringTagclientgdprFunction.prototype.namelintequalexitObject.fromEntrieswatchingmobilerecursivemomentcmdspringes2018filterirqeslintconfigUint16ArrayqsUint8Arrayesjson-schemaajvES2023prototostringtagajaxpureuuidfast-cloneserializerapolloreact poseexecutableidlesideURLsymlinkinternal slotfunctionnegative zeroArrayBuffer.prototype.slicemkdirObjectECMAScript 2018statelesssetPrototypeOfdataletbytemimestylesliceObject.keysnativedefinePropertyBigUint64ArrayansizerostartArray.prototype.findLastIndextypesnamees6mime-dbCSSlanguageArray.prototype.flattenfigletshellvestfindspecuninstallgroupArrayBufferoncees8keyjwtinstallerpackage managerES8formjavascriptttysanitizeurlsfetch.envstringhasOwncss variabletslibdropprototypecall-boundprogresses-shim APIsetterflatMaputilsxtermlimitedlook-upes2016TypedArrayschemepropertyreadablestreambddauthenticationHyBiupprefixdayjscoreschematoolkitobjectlinuxcall-bindfunctionalES2018typanioncallbounddatastructureflagbundlingpropTypeScriptreact-hooksObject.definePropertyjestformatmimetypespolyfillnodeutil.inspectprocessReflect.getPrototypeOfomitnodejsRxJStoSortedawaitopenergradients cssarraysRegExp#flagsjsdiffpreserve-symlinksjson-schema-validatoroperating-systemeverysymlinksxdgstyleguideperformantlockfilescheme-validationshamframeworkcommanderio-tsairbnbmkdirsmodulespatchexeredux-toolkitenumerableinferenceweakmapentriesbatchshebangtoolstyped arraytypesafespawnregexES3searchhttpyamleventEmitterMicrosoftmetadatargbartoffsetcontainsfast-copycomputed-typeseditorlaunchpluginbuffersconsoleterminalbrowserlistSymbolinvariantlistenersString.prototype.matchAllES2019lesscssgetPrototypeOffolderfastifyiterateTypeBoxdotenvvalidfast-deep-cloneMapgetString.prototype.trimlookless.jsconcatcjkbootstrap lesses-abstractES2016jsonschemaReactiveExtensionsargumenttrimpushinputexecstylinghandlerslibphonenumberwebkoreanextendObject.isunicodedeep-copyloggingfileapisymbolxhrharmonyless mixinscolumnscomparepoint-freesortedwhichtermclifullanimationbreakless compilerfindLastIndexviewstableenvironmentpropertiesencryptionerrorcoercibleAsyncIteratorRxdomrmdeletecss-in-jsECMAScript 2022throatdeepcopyindicatorwalking_.extendimmerequalityfindLastlastform-validationcode pointswgetrandomcodesdragduplexutilitiesInt32ArrayauthUint32ArraygroupBytranspileflattensequenceregularvartc39astquerystringdefinemiddlewaresafereact animationstreamArray.prototype.includesdirectoryfsInt16ArraytranspilercheckpromisesECMAScript 5256rm -frautoprefixerESnextwaapiregular expressionmacosbcryptlimitgetoptsameValueZerostyled-componentsi18nwritabletextcharactershttpsFloat32ArrayiterationcacheRegExp.prototype.flagsexpresses2017symbolsbrowsertestingbluebirdECMAScript 2015typedarraysfunctionslengthreusetraversemulti-packagefindupprettyvalidationpersistentjson-schema-validationtouchObject.entrieslruvalidatepassworddatecircularinternalcurriedjsonpathES5es-shimsstylesnumberdirstructuredClonecharacter3dES2021@@toStringTagopenssignalbabel-corewatchchromeforEachmonorepoeslint-plugincompile lessponyfillpreprocessortypeofstreams2logdom-testing-librarybrowserslistargumentsloadinguser-streamsstatusrm -rfpostcssregexpArray.prototype.containspostcss-pluginwrap6to5packagesWebSocketsfile systemwriteperformanceglobaccessibilityregular expressionscryptqueueassertionchannelsharedarraybufferavadebugcallwebsitedescriptorcorsarktypeserializeassertsxsspipeES2022xdg-openECMAScript 7es2015robustramdajsdomArray__proto__getintrinsicsuperagentpositiveprunesigtermWeakMapURLSearchParamsCSSStyleDeclarationcolortakeRFC-6455trimStarttddoutputnoperapidsanitizationprotobufjasmineoptimisttelephoneimportkarmachildArray.prototype.flatMapfastclonesigintobjsyntaxerrornamesecmascriptpackage.jsonlinewrapkeysreduceeventDispatcherdescriptionarraywhatwgparsershimaccessortypedcommandFloat64Arrayprivate datadeterministicreactenderECMAScript 6toArrayArray.prototype.filterdataviewsetconstreadreal-timeruntimeObject.getPrototypeOflessextracolourmatchtapejQueryObservablejsonjsmatches-0BigInt64Arrayes7JSONwaittrimLeft
1.0.0

13 days ago