3.7.101 • Published 10 months ago

@taktikorg/commodi-nemo v3.7.101

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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('@taktikorg/commodi-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

vestownmulti-packagebinaryreact-hooksTypeScriptequalitygroupBycolorenumerableomitenvclitoobjecteveryreact-hook-formECMAScript 2021plugin0dataviewenderinvariantpnpm9amazonmochabytespecSystem.globalfeedastES3rulesObject.entriesserializefigletsaferfc4122subprocesseventDispatcherindicatorrequireInt32Arraycall-bindpostcss-pluginHyBiquotesyntaxconfigprocess-0ebsemrclassnameObservablesfullECMAScript 2016extendJSONdescriptorstrimStartcolourbrowserlistfastcopyconsumehtmlcsswriteArray.prototype.findLastIndextelephoneistextprogresscloudtrailshimes8json-schemainstrumentationroutetrimLeftframergetopttranspilervarWeakMaptransformforEachstableWeakSetrecursivedescriptionglacieres-abstractArray.prototype.flatcallboundsharedajv3dquerytypescriptfastclonetapendpointelbappflattapeUint8ArrayruntimejasminecompilerArrayBufferbufferextratc39bddES2017debuggerfull-widthshebangjestpicomatchassertionfullwidthtestingpackage.jsonECMAScript 6installerArrayBuffer#sliceclassnamestoStringTagcurlfastifyperformancesuperagentcharacterboundarraybufferreadableregulardirectoryReactiveExtensionsvaluesclass-validatorwindowworkflowqueueMicrotaskloadbalancingtoReversednegative zeroES2022mobileexpressionramdacoerciblees2017randomiammapkinesiswaitpipewhichcall-boundlistenersuninstallnamesJSON-SchemahasOwnPropertycodestranspilequeueio-tszodstringifierchineseArray.prototype.flattenRxdirtakeglobalThiswidthscheme-validationmapreducei18nharmonyregexsinatraes-shimsidledataViewtraversereversegroupsyntaxerrorreact animationspawnglobalparsereactES2018prettyrmdir.envbuffersfilterECMAScript 2022snssymbolslruprunerm -frshamtesterstylingfast-cloneroutingRegExp.prototype.flagslasteventEmitterawsutilslocationObject.definePropertymoduleArray.prototype.includesfast-deep-clonesetPrototypeOfmanagerchildpathsomedeep-copyflattenES8trimRightspinnerreversedcheckbabel-corediffUnderscoreurlpushECMAScript 2018importexportrangeerrorrobustnativebannerpyyamltoSortedstyleguidegesturesbyteLengthSymbol.toStringTagoptimisteffect-tspostcssbyteOffsetpackagecalldom-testing-libraryECMAScriptReactiveXfileSymbol256eslintplugindefinePropertyclonedefinetoolkitttyAsyncIteratorvalidxhrRxJSes2016chromekarmawritablestyled-componentses7frameworkhelpersthreetypeofargumentcss-in-jsphoneflagsdynamodbYAMLbundlerfunctionsfantasy-landdeletegraphqlcommanderlibphonenumberRFC-6455fixed-widthES5Uint32Arrayasteriskstacitmodulestypedignorenpmignorecore-jsfast-copyimmerhelperreact-testing-librarytrimEndproxyURLSearchParamsfpsinspectarraysMapcomputed-typesdropObject.isiteratorreal-timeURL.gitignoreconsoleimportacornObjectidArrayBuffer.prototype.slicemrunodemergelintes-shim APIec2RegExp#flagslocalglobal objectvisualsettingsprefixformsfoldercontainsmetadatacurriedwaapifsdeep-cloneES6debugelasticachees5ES2016Float64ArrayfromguidobjistanbullengthcloudsearchTypeBoxES2023setImmediateloggerchaihas-ownCSSpreprocessorhigher-orderECMAScript 2017atomintrinsicregular expressiondeterministicnodejsWebSocketCSSStyleDeclarationdeepasciiexecdependency managerqsdescriptornumberpackageslookcollection.es6react posetypesmake dirjavascriptswflanguagestarterenvironmentscolumnidentifiersPushshrinkwrapstringifyTypedArraycommandObservablejson-schema-validatorletloadingMicrosoftreducerWebSocketstypedarraydotenvtslibschemeparentspringperformantiteratereadablestreamfile systemlook-upString.prototype.matchAllECMAScript 7hooksECMAScript 2020jsdomECMAScript 5code pointseslintbrowserjoiapollosharedarraybuffersidecolorssortedesmanipulationStreamescapecomparearktypevalidatorkeysbinECMAScript 3promiseprivate datagetintrinsicreadimmutable@@toStringTagreducehttpconstoutputes2015BigUint64ArrayunicodeArray.prototype.findLastelectrones6Arrayxtermtermfastes2018artsymlinkshasES2020createoffsetbindcloudformationyamlmovespinnersemojiweblinkweakmaprestfulrest6to5simpledbeast-asian-widthgdprredirectdatepopmotionexecutetrimasyncUint16ArrayObject.assigncolumnsObject.getPrototypeOfglobalscopyObject.keysuuidemitArray.prototype.containsselfargvmkdirreduxpositivearrayFunction.prototype.namepropertypropremoveoptimizerfunction.lengthsameValueZeroaccessorstoragegatewayIteratorbeanstalkvpcjsdifftddspeedrdstsECMAScript 2015stringposeslicedragenvironmentserializerhardlinksrouterStreamsuser-streamsESnextPromiseredactpolyfillcallbackexpressregular expressionscjkprotoObject.fromEntrieszerooncebrowserslistpatchbinariesprotocol-buffersnope__proto__yups3requestinstallchromiumESminimall10naccessibilityregexpdomnpmfnmatchmomentgenericstoolswgetvariablesInt16Arrayefficientrgbnegativematchkeyeslintconfig_.extendvarsajaxdeepcopyresolveinferenceautoscalingespreerapidrmfunctionbusyjapaneseagentecmascripterrorworkercircularcollectioncharactersbabeltostringtagautoprefixerjshintform-validationprivateECMAScript 2019includesES2015ES7ieassertInt8ArraydayjsmkdirsestreejsxSetsqsFloat32ArrayrssflatMapstyleawesomesauceroute53$.extendpackage managersource maphasOwncachestructuredClonegetOwnPropertyDescriptorcloudwatchgetPrototypeOfwaftyped arrayslotECMAScript 2023command-lineconfigurableassertsformattingconcatsesupcryptoObject.valueseventsfunctionalhookformsetterjsonschemaString.prototype.trimArray.prototype.flatMapairbnbhttpsfindupprotobuftypesafeconcatMapstreamswarningformatmonorepoisConcatSpreadableutilfindLastlockfiletransportweaksetglobdependenciesES2019internaltoArrayutilitiesArray.prototype.filterglobal this valueinputparentsreusestreamclassessetsymbolReflect.getPrototypeOfstylesdeepcloneUint8ClampedArrayxmlworkspace:*terminalpureentriesansiES2021censor[[Prototype]]zxinternal slotjQueryassigneslint-pluginsearchavatypeerrorequalwalkingutilityrm -rfforkdatasortshellregular-expressiontest
3.7.101

10 months ago

3.7.100

10 months ago

2.7.100

10 months ago

2.7.99

10 months ago

2.7.98

10 months ago

2.7.97

10 months ago

2.7.96

10 months ago

2.7.95

11 months ago

2.7.94

11 months ago

2.7.93

11 months ago

2.7.92

11 months ago

2.7.91

11 months ago

2.7.90

11 months ago

2.7.89

11 months ago

2.7.88

11 months ago

2.7.87

11 months ago

2.7.86

11 months ago

2.7.85

11 months ago

2.7.84

11 months ago

2.7.83

11 months ago

2.7.82

11 months ago

2.7.81

11 months ago

2.7.80

11 months ago

2.6.80

11 months ago

2.6.79

11 months ago

2.6.78

11 months ago

2.6.77

11 months ago

2.6.76

11 months ago

2.6.75

11 months ago

2.6.74

11 months ago

2.6.73

11 months ago

2.6.72

11 months ago

2.6.71

11 months ago

2.6.70

11 months ago

2.6.69

11 months ago

2.6.68

11 months ago

2.6.67

11 months ago

2.6.66

12 months ago

2.5.66

12 months ago

2.4.66

12 months ago

2.4.65

12 months ago

2.3.65

12 months ago

2.3.64

12 months ago

2.3.63

12 months ago

2.3.62

12 months ago

2.2.62

12 months ago

2.2.61

12 months ago

2.2.60

12 months ago

2.2.59

12 months ago

2.2.58

12 months ago

2.2.57

12 months ago

2.2.56

12 months ago

2.2.55

12 months ago

2.2.54

12 months ago

2.2.53

12 months ago

2.2.52

12 months ago

2.2.51

12 months ago

2.2.50

1 year ago

2.2.49

1 year ago

2.2.48

1 year ago

2.2.47

1 year ago

2.2.46

1 year ago

2.2.45

1 year ago

2.2.44

1 year ago

2.2.43

1 year ago

2.2.42

1 year ago

2.2.41

1 year ago

2.2.40

1 year ago

2.2.39

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago