1.0.0 • Published 15 days ago

@rabiepenpm/sed-alias-velit v1.0.0

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

@rabiepenpm/sed-alias-velit Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2017 spec-compliant Object.entries shim. Invoke its "shim" method to shim Object.entries 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 spec.

Most common usage:

var assert = require('assert');
var entries = require('@rabiepenpm/sed-alias-velit');

var obj = { a: 1, b: 2, c: 3 };
var expected = [['a', 1], ['b', 2], ['c', 3]];

if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
	// for environments with Symbol support
	var sym = Symbol();
	obj[sym] = 4;
	obj.d = sym;
	expected.push(['d', sym]);
}

assert.deepEqual(entries(obj), expected);

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

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

Tests

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

schemaincludesvalidaterecursiveoptionBigUint64Arrayjasminestringeditorinvariantmapcomputed-typesirqpnpm9formtouchpoint-freeobjtrimLeftflatcolourspeedprivate dataquotematchFunction.prototype.nameoutputgetPrototypeOfregular expressionsSymbol.toStringTaggesturesa11yconstbrowserslist6to5superstructpassword[[Prototype]]fast-deep-copybddCSSjavascriptarraysasciichaifullwidthURLratelimitframeworkstyleencryptionrandomstringifynameUnderscorefastclonerm -rflogsanitizeeventDispatcherstreams2getvisualUint8Arraygenericsuptoolkites-abstractfullECMAScript 7requestbyteOffsetinternalslotreact-hook-formtranspilerconnectAsyncIteratormatchAlles6koreanrmdirchanneleswebcurriedESnextefficientinspectECMAScript 2023environmentjson-schema-validatorjsonschemaArrayBuffer.prototype.slicestdlibformstypeerrordataViewObject.valuescollectioncolumnsqueuei18nqueryindicatoreslint-pluginECMAScript 2019valuesbannerestreesettertssliceautoprefixersigtermchromiumstyled-componentsstarttestingclient256jsdomdayjsutilitiescharacterssafeopensimporttypeofObject.definePropertyECMAScript 2016sanitizationcorelesscssfiletrimgetOwnPropertyDescriptorhasOwninstallcreategdprvalidationboundlistenerscss variableutil.inspectoptimistclassnameObjectwalkuninstallaccessorforEachObject.entriesclassnamestranspiledom-testing-libraryglobenderspawnfpaccessibilityes-shimsdeepcloneconfigurablel10ndropfindupprotobufnodeexecutablebufferswgetprocessregexpwatchFileformattingserializerphonepathcoercibledatehasArray.prototype.includestapecall-boundes2015colorspostcsschinese.envStreamargumentString.prototype.matchAllspinnersparsetakevariablesinferenceopeneres8debugsignalkarmaqswatcherassertES2019statelesslookless csstesterArray.prototype.flattenspecnegativeObject.getPrototypeOfRegExp#flagsisimmutableiterationReactiveXconcurrencylanguageregexlook-uprmArray.prototype.findLastmovetoStringTagwaitreactminimalfastifypolyfillomitwordbreakloggerlessURLSearchParamsexit-codepropertyjsxnpmCSSStyleDeclarationtoSortedjson-schemaRxJSoffsetthroatdependenciesduplexes5deepcodesbundlerprivateeslintconfigdeterministicinstallertostringtagnested cssinterruptsjesttypedwalkingserializationdescriptorsjson-schema-validationdebuggerbreakcss-in-jsguidcolumnthreeInt32Arrayperformantbabel-corexdgxssES2017validator_.extenddeep-copytslibwhichwaapiECMAScript 2022dataviewrateArray.prototype.filtercmdenumerablepure@@toStringTaghigher-orderjsonECMAScript 2020RxReactiveExtensionsspringeventEmittertypedarrayfunctionrgbpropertiesbuffercollection.es6datastructureerrorpruneES2020cachefunctionaltermpluginMicrosoftintrinsiclinuxObject.keyspropuuidsomestatusObservableszodclivariables in cssconfiggetterharmonyprogresseslintpluginshrinkwrapargs$.extendhttpmergeArrayBuffer#sliceextrasuperagentvestlinkreact-testing-librarygradients css3xhrpersistentairbnbHyBidependency managerexpressionfinddescriptionrobusttoArraysymbolscss lessfsimmerchildremoveurlcryptstylingkeysshellbootstrap csscorstypespostcss-plugineveryweakmapinputassertionprototypeArray.prototype.flatMapterminalcallbindpushpackagesutilsfastcopydeepcopyES7user-streamsUint8ClampedArrayhelpersArray.prototype.flatfind-upsortregularobjectbytereadablestreamerror-handlingenvdefaultnodejspipeunicodepackagetestfunctionsECMAScript 2015entriescompilerlrulaunchflagdir3dclass-validatorsetfromcopymruwatchingsidesharedarraybuffercurlRFC-6455apolloviewmodule
1.0.0

15 days ago