1.0.0 • Published 15 days ago

@micromint1npm/minima-minus-ipsum v1.0.0

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

@micromint1npm/minima-minus-ipsum 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('@micromint1npm/minima-minus-ipsum');

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

promisesidlenamejavascriptnegative zeroenumerableES6omitfsgetintrinsicfastifycommanderiterationmimetypeshashspinnersdeterministiccolorcoerciblewatchingUint8ClampedArraypersistentwatchredux-toolkithandlersargumentArray.prototype.includeslinewrapUint8ArrayECMAScript 2022shrinkwrapschemadatagetter@@toStringTagexitastextendsharedarraybufferWeakMapes-shim APIrm -rfstdlibes8packagessortedjscurriedrapidECMAScript 2020256stringifieruuidserializebusysignalArray.prototype.filtermatchwrapmochaArraytoobjecttrimLeftrmbreakunicodestatelessstreamsio-tsvariablesuninstallshampipeworkspace:*ratelimitjsxauthenticationlistenersObject.valuesTypeScripthigher-ordergestureserrorfastcloneisreact-testing-librarytslibmime-dbJSON-SchemaoffsetisConcatSpreadablextermwordbreakES3form-validationbcryptwatcheriteratorRxJSrangeerrorcjkexpressionwordwrapclientfast-deep-cloneutiles2017stringdayjsclimiddlewareformattouchauthReactiveXRxconcatfindLastIndexextensionESnextparserwritableinterruptsuser-streamsexpresseventsES2019awaitlimitedchineselibphonenumberRegExp.prototype.flagsdependenciesObjectponyfilloptionajvfind-upString.prototype.matchAllbindfixed-widthsettings-0debuggerstylingStyleSheetweaksetjsdomimmergrouptypeofeventEmittermobilepropertiessidecolumnsprefixwebjQuerymergemonorepostylesheetautoprefixerReactiveExtensionsflattentrimEndjson-schemavarpicomatchtypedarraysdescriptiontakemakeprotobufgetOwnPropertyDescriptorIteratormkdires6animationhookformlogboundschemeformattingjsonconfigurableObject.fromEntriesprototypereact animationreact-hook-formEStsdatastructureequalaccessormixinsSetRFC-6455bannerincludesArrayBuffer#slicetapcryptoInt16ArraysyntaxletoutputjestintrinsicSymbolsignalsTypedArrayECMAScript 2016performancepreserve-symlinkstypesafevisualArray.prototype.flatMaphasnegativetacitclassnameprivatetypedcachefindgradients css3envtimearraybundlersortWeakSetFloat64ArraywidthruntimesameValueZerosequencebootstrap lessarktypees-shimsbuffersmatchAllbyteLengthes-abstractchromiumtoStringTagtoSortedloadinglinktestgdprworkermkdirpfilepropertyfilterstablearraysslicexhrdataviewdeep-clonetypedarrayrfc4122typeaccessibilitylooktypeerrorgetPrototypeOfartconfigrequestawesomesaucenopemacosstructuredClonedirObject.assignregexformsescapetrimtextcallparentPushcolouryuptaskless.jszodstreames2018equalitybrowserlistassertsreducerfunctioncomputed-typesdropJSONprotooptimizerjson-schema-validatorlanguageECMAScript 3batchinvariantwalkprotocol-buffersflatMapcompilerexit-codescheme-validationframerregularcopyargvstyleCSSStyleDeclarationindicatorfullwidthArray.prototype.containspoint-freechannelmatchesECMAScript 7toolkitcensorES2016passwordsafe0code pointsnodedependency managertyped arrayarraybufferenderObservableArray.prototype.flaturlzerobytevestlinuxfastcopycolorseslint-plugintraversedeleteduplexprunereactSymbol.toStringTagReflect.getPrototypeOfreact-hooksinferencedefinePropertysettereventDispatcherrecursivecallbindeverycircularObject.getPrototypeOfObservablesfseventsBigUint64ArrayArray.prototype.findLastspringdotenvcss lessapibluebirdArrayBuffer.prototype.slicethrottlebundlingreact posevalidatorcharacterfindLasterror-handlingavautil.inspectWebSocketvaluepyyamlparentsflagslengthlesscssinstallercallboundWebSocketsserializationES2023yamlgetoptes5Streamsless compilerfetchperformanttranspilefunctionalreduxpolyfillmoduledateECMAScript 20213dsymlinksi18ncsseslintpluginfantasy-landBigInt64ArrayInt8ArraytostringtagtranspilerdataViewsanitizelessgradients csseslintvalidationtermresolvetelephonefast-deep-copycore-jseast-asian-widthbddoperating-systemtestingRegExp#flagsredactwalkingbrowserslistmimeless csslintprettyspinnerclassesspecpnpm9iteratemake dirgroupBynpmhooksopenglobtc39symlinkinternaltypescript
1.0.0

15 days ago