3.7.101 • Published 2 years ago

@taktikorg/commodi-nemo v3.7.101

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

2 years ago

3.7.100

2 years ago

2.7.100

2 years ago

2.7.99

2 years ago

2.7.98

2 years ago

2.7.97

2 years ago

2.7.96

2 years ago

2.7.95

2 years ago

2.7.94

2 years ago

2.7.93

2 years ago

2.7.92

2 years ago

2.7.91

2 years ago

2.7.90

2 years ago

2.7.89

2 years ago

2.7.88

2 years ago

2.7.87

2 years ago

2.7.86

2 years ago

2.7.85

2 years ago

2.7.84

2 years ago

2.7.83

2 years ago

2.7.82

2 years ago

2.7.81

2 years ago

2.7.80

2 years ago

2.6.80

2 years ago

2.6.79

2 years ago

2.6.78

2 years ago

2.6.77

2 years ago

2.6.76

2 years ago

2.6.75

2 years ago

2.6.74

2 years ago

2.6.73

2 years ago

2.6.72

2 years ago

2.6.71

2 years ago

2.6.70

2 years ago

2.6.69

2 years ago

2.6.68

2 years ago

2.6.67

2 years ago

2.6.66

2 years ago

2.5.66

2 years ago

2.4.66

2 years ago

2.4.65

2 years ago

2.3.65

2 years ago

2.3.64

2 years ago

2.3.63

2 years ago

2.3.62

2 years ago

2.2.62

2 years ago

2.2.61

2 years ago

2.2.60

2 years ago

2.2.59

2 years ago

2.2.58

2 years ago

2.2.57

2 years ago

2.2.56

2 years ago

2.2.55

2 years ago

2.2.54

2 years ago

2.2.53

2 years ago

2.2.52

2 years ago

2.2.51

2 years ago

2.2.50

2 years ago

2.2.49

2 years ago

2.2.48

2 years ago

2.2.47

2 years ago

2.2.46

2 years ago

2.2.45

2 years ago

2.2.44

2 years ago

2.2.43

2 years ago

2.2.42

2 years ago

2.2.41

2 years ago

2.2.40

2 years ago

2.2.39

2 years ago

2.1.39

2 years ago

2.1.38

2 years ago

2.1.37

2 years ago

2.1.36

2 years ago

2.1.35

2 years ago

2.1.34

2 years ago

2.1.33

2 years ago

2.1.32

2 years ago

2.1.31

2 years ago

2.1.30

2 years ago

2.1.29

2 years ago

2.1.28

2 years ago

2.1.27

2 years ago

2.1.26

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

2.1.18

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago