1.0.19 • Published 7 months ago

@kollorg/explicabo-nemo v1.0.19

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

ArrayBuffer.prototype.slice Version Badge

github actions coverage License Downloads

npm badge

An ES spec-compliant ArrayBuffer.prototype.slice shim. Invoke its "shim" method to shim ArrayBuffer.prototype.slice if it is unavailable.

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

Most common usage:

var assert = require('assert');
var slice = require('@kollorg/explicabo-nemo');

var ab = new ArrayBuffer(1);
var arr = new Uint8Array(ab);
arr[0] = 123;

var ab2 = slice(ab);

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

if (!ArrayBuffer.prototype.transfer) {
	slice.shim();
}

var ab2 = ab.slice();

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

Tests

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

reversetslibStreamfull-widthECMAScript 2020$.extendsharedarraybufferstructuredClonefast-copyshimnpmshellcoveragelook-upESnextclonees6pyyamlinputfastjsonschemainternalReflect.getPrototypeOfmomentStreamsenvironmentsRFC-6455textdeterministicanimationprivate datargbrequestshebangsortelbhasOwntoSortedwritesameValueZeromake dir.envfind-upstoragegatewayECMAScript 6escapeworkerarktypeloadbalancingsqsrandomrdsArray.prototype.containspromiseRxobjcurriedpathredux-toolkithasObject.getPrototypeOfmapreduceES2019nameforEachcircularslotmkdirmakeObjectStyleSheettypedarraystringifyruntimecheckexpressdataViewObject.entriestransportlockfileenumerablerulessetcolumnsscheme-validationes8matchgroupBybyteOffsetschemebabelurlpicomatchflagprettybindlibphonenumberspinnersequalityendpointenvboundoutputchaiinstallerhtmlAsyncIteratorbeanstalktoStringTagES2015assignBigInt64ArraymetadataserializeaccessibilityarrayECMAScript 2023protobufuser-streamsglobalcodesglobal objectbufferstestinglocalcolorslintBigUint64ArrayquerymatchesvariablescontainsloadingwaffilecommanderfullArrayBuffer.prototype.slicenpmignorejestbundleramazonlistenerstraversestablehardlinkssetPrototypeOftoReversedxhrYAMLFunction.prototype.nameenderdescriptorcolumnbyteLengthes-shim APIequalinstrumentationsetterclassesdependency managerrequirewaapicss-in-jsrestfultypedarraysIterator@@toStringTagfast-clone6to5fnmatchjsdifftapeWebSocketsapponcesetImmediaterfc4122descriptionES2020recursivenativespecwidth__proto__Object.definePropertytesterUnderscoresymboles-abstractprefixURLSearchParamsemrObject.keysfindupcacheES2018flattenRegExp#flagsmochagesturesintrinsicwhichdayjslocationwalkingjoiairbnbarraybufferqueueMicrotaskfolderdataviewsliceECMAScript 7espreeframer-0deep-copyprocessbusykeyhookssesUint32ArrayMicrosoftES2017String.prototype.trimglacierhelpercoerciblelogcloudtrailemitcollectioniteratorsyntaxECMAScript 2017atomcollection.es6postcss-plugines7fsSystem.globalfeedinternal slothash[[Prototype]]CSSexpressionenvironmentweakmapESreact-hook-formstylingxmlchromeiamjasminecopyapollosubprocessdeepcopycore-jstoobjectdiffgenericsagentexecreact posetoArrayshrinkwrapgetPrototypeOfargsutilitiessinatrazerowaitECMAScript 5functionsObject.isparserrapidglobalThisfindvalueextendunicode.gitignorequerystringsharedtelephoneoffsetcompareArray.prototype.findLastIndexpipeavadefinehasOwnPropertytranspilefast-deep-copygraphqlreadablestreamprotoomitfetchconfigidES2023eslint-pluginjavascript0descriptorssymbolschildhttpsES2016typed arraytrimEndmovefixed-widthreact animationrm -rfelectronsimpledbeventDispatcherTypeScriptspeedfile systeminspectfastcopyl10npopmotionpolyfillhttpecmascriptsafetrimRighteveryjsonmoduleutilsroute53typesafesource mapmergecurlrmfpspostcss_.extendfantasy-landMapignoreupponyfillpackage managerzod3dformatdropInt32ArraysnsdatavalidatorECMAScript 3higher-orderrssArray.prototype.filterimportregexpestreetrimjshintredacts3jQuerygetterreact-testing-librarytoolkitflagschannelcssreusequoteeffect-tsUint16ArraydotenvreadablerobustRegExp.prototype.flagsUint8ArrayArray.prototype.flatfigletimportexporttypeofmanipulationemojiES5deep-cloneserializeri18nregular-expressioninvariantcommandform-validationJSONparentspropertyparentregular expressionWeakSetreduxdependenciesECMAScript 2016hookformjsES2021filteroptimistphonesuperstructtypeerrorfast-deep-clonetrimStartgetOwnPropertyDescriptorramdavisualresolvedeepmkdirpnodejsoptiongetoptthreeuuidxtermcompilerfindLastpropertiesredirecttacitstreamreact-hooksArrayBuffer#sliceyamlFloat32ArraychromiumObservablesgroupclicall-boundroutingweaksetPromisepatchregexwhatwgtapprogressassertreal-timepnpm9schemafunctionalArraytddbinaryawesomesaucesomegdprnegativeserializationpoint-freeargumentworkflowpluginwindowconfigurableInt16ArrayArray.prototype.flatteneslintconfigreducerbddregularentriesdirectoryECMAScript 2021ArrayBufferwalkbufferrangeerrorasyncassertstsURLjson-schema-validatortypedapiminimalimmutableES7colourwarningvalidateJSON-Schemaes2016cloudformationelasticachekarmaprivatejsxcharacterreworkTypedArrayeventEmitternodevestlrues2018kinesisconstinferenceInt8Arrayarraysterminaleast-asian-widthsham256reducesideArray.prototype.includesbinariesspinnertimecryptoRxJSTypeBoxspawnObservableremovecallboundwgetpropiteratetouchclassnameincludescommand-linefastclonetoolspackageFloat64ArraytrimLefttakeextraSymbolguidtermexecfilecall-bindfunction.lengthWebSocketSettostringtagviewasterisksgetchinesesuperagentcreatevalidECMAScript 2015zxnopeWeakMapArray.prototype.flatMapec2deletekoreanparsestreamserrormanagerroutebrowserslistkeysforkstringvalidationswfrm -frglobalspushtypeartbinoptimizerutilSymbol.toStringTagglobal this valuevaluesString.prototype.matchAllcjkcode pointsECMAScript 2019ECMAScriptprunees-shimssymlinksloggerefficientformsa11yimmerjsdomes2015autoscalingbundlinguninstallprotocol-buffersqueuevarsargvpackagesbabel-corecloudsearchmobilepackage.jsonownmapfunctionnamesidlefastifycoreconcatidentifiersfrommulti-packagermdirassertionebsharmonydebuggerES6fullwidthobjectcallcensorfpissyntaxerrordomformattingqscomputed-typesletes2017has-owneslintawsPushajaxdirgitignoreflatcolorArray.prototype.findLastlookieprototypeconsumewritablepositiverouterclass-validatorES8bannerbytedynamodbECMAScript 2022selfhelpersmkdirseventsHyBiregular expressionsyupstringifiermatchAllwebindicatorpureUint8ClampedArraycharactersperformanceconsolepreprocessorstarterasciistyleguideproxyloggingcloudfronttc39springdraglastconcatMapmodulesreactES2022Object.assignsettingsstyled-componentsexecuterestistanbuljson-schematranspileres5negative zerostyleslinkECMAScript 2018performantlengthdefinePropertyjson-schema-validationlanguageansiCSSStyleDeclarationglobtypestestcloudwatchvpcfindLastIndexastacornreadframeworkisConcatSpreadableclientautoprefixeraccessorajvworkspace:*io-tsutilitysearchttysortedgetintrinsicstylecallbackjapaneseeslintplugindeepcloneflatMapbrowsertypaniondom-testing-libraryReactiveExtensions
1.0.19

7 months ago

1.0.18

7 months ago

1.0.17

7 months ago

1.0.16

7 months ago

1.0.15

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.12

7 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago