3.7.101 • Published 1 year ago

@taktikorg/commodi-nemo v3.7.101

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

3.7.100

1 year ago

2.7.100

1 year ago

2.7.99

1 year ago

2.7.98

1 year ago

2.7.97

1 year ago

2.7.96

1 year ago

2.7.95

1 year ago

2.7.94

1 year ago

2.7.93

1 year ago

2.7.92

1 year ago

2.7.91

1 year ago

2.7.90

1 year ago

2.7.89

1 year ago

2.7.88

1 year ago

2.7.87

1 year ago

2.7.86

1 year ago

2.7.85

1 year ago

2.7.84

1 year ago

2.7.83

1 year ago

2.7.82

1 year ago

2.7.81

1 year ago

2.7.80

1 year ago

2.6.80

1 year ago

2.6.79

1 year ago

2.6.78

1 year ago

2.6.77

1 year ago

2.6.76

1 year ago

2.6.75

1 year ago

2.6.74

1 year ago

2.6.73

1 year ago

2.6.72

1 year ago

2.6.71

1 year ago

2.6.70

1 year ago

2.6.69

1 year ago

2.6.68

1 year ago

2.6.67

1 year ago

2.6.66

1 year ago

2.5.66

1 year ago

2.4.66

1 year ago

2.4.65

1 year ago

2.3.65

1 year ago

2.3.64

1 year ago

2.3.63

1 year ago

2.3.62

1 year ago

2.2.62

1 year ago

2.2.61

1 year ago

2.2.60

1 year ago

2.2.59

1 year ago

2.2.58

1 year ago

2.2.57

1 year ago

2.2.56

1 year ago

2.2.55

1 year ago

2.2.54

1 year ago

2.2.53

1 year ago

2.2.52

1 year ago

2.2.51

1 year 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