1.0.0 • Published 14 days ago

@ffras4vnpm/temporibus-voluptates-laboriosam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days 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('@ffras4vnpm/temporibus-voluptates-laboriosam');

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

positiveform-validationlockfilemochaobjectJSON-SchemacallbindspinnersdependenciesArray.prototype.flatObject.entriesevents_.extendeast-asian-widthjQueryes2017batchsymlinkpluginargves6progressaccessorRegExp.prototype.flagsRFC-6455validatelogES3eslintduplexnamessortedtrimStartescapecommandvarsetPrototypeOfnegativeutil.inspectmomentreadablestreamhardlinksjapaneseopenasyncgraphqlwaiteventEmitterxdgwaapigroupByfetchInt32Arrayperformancedefinefilemimetypescollectioncurriedpreserve-symlinksdescriptorpropertiesvestslicecurlArraydebuggerless compilerbluebirdurlfigletcallboundi18ngradients cssgesturesbuffersutilsjsxdeep-copyassertsbreakbrowserslistwebsiterobustconstdeep-clonestylingmime-dbestreespawncommand-linepolyfillgdprfixed-widthWebSocketmergewordwrapchromiumUint8Arraywritegradients css3lastomitreact poseString.prototype.trimposeStreamses5css variableefficientjson-schemaSymboltypedarraysexe.envfsshellshammoduleserror-handlingstartcirculartypesafewidthworkspace:*immerqscollection.es6upparserpersistentwindowsfilterES2019configurableminimalpromiseschinesereduxapprequestasciiindicatorECMAScript 2015jsdiffinternaljoipackagesparentserializeoptimizerinspectdeeptimetypanionstablequerystringCSSmatchAllframercolorsprivate dataunicodefullwidthsyntaxmakefast-clonemacossequenceECMAScript 2021moduledeepcloneinstallerformatES2023stdlibeslintconfigstringifierspinnerStyleSheetString.prototype.matchAllTypeScriptratelimitreacthashArray.prototype.containstypedarraythroatreducedescriptionprotocol-buffersObject.getPrototypeOfrmdategenericsremoveshrinkwrapautoprefixerweakmapenumerablevariables in csscomputed-typesidletrimEndcheckimmutablegetyamlmatchesmkdirpmruansicommanderchromesomewrapcontainsglobdotenvoffsetobjapollopathECMAScript 6getintrinsicIteratorRegExp#flagsflattenbyteLengthES2018ecmascriptCSSStyleDeclarationiteratorslotfull-widthreaddomtyped arrayes-shimsurlssanitizetc39dependency managerwatchFiletranspilerwalkvisualloggingECMAScript 2017react animationECMAScript 7propertycopyFloat32ArrayauthenticationargumentintrinsictraverseconcatMapprotoperformanta11yArrayBuffer#sliceassertiontoolsObject.valuesstreams2exit-codeInt16ArraykarmawgettaskgetPrototypeOfnamestarterstylesoperating-systemjwtemitAsyncIteratoroutputsetImmediateECMAScript 2020sharedarraybufferlazyPushES2020utilpoint-freeequalcallconsoleless mixinsArray.prototype.includesbusyRxcall-bindsiginttypejsonpathRxJSuninstallreact-testing-librarytsYAMLtddthrottleinternal slot__proto__bddclassescssmatchwatchingruntimeiestreamdescriptorsarktypees7linuxhookspasswordgetterdatajsdefinePropertyinferenceuuidxssES2022droplook-upcall-bounddeterministicjsonschemacompile lessflagcensoropensprocessequalityFloat64ArrayStreamfast-copyerrorArray.prototype.filterReactiveXpureFunction.prototype.namesignaljasminesymlinksECMAScript 2022concurrencybrowseruser-streamsanimationparsextermassignramda[[Prototype]]rfc4122handlersformsReactiveExtensionsbannerwritablecode pointseverysharedvaluetapepopmotionpackagemixinslistenersclassnameloggerbufferlookcmdchildpyyamlflatMapURLSearchParamstrimfast-deep-copytrimRighttypeerrorfunctionalspringdefaultBigInt64ArrayxhrECMAScript 3Symbol.toStringTaglengthjestinterruptsprotobuftermURLdayjsstreamsutilitiesES2016tsliboptimistnodejsyuptoolkitfindupdom-testing-libraryentriesfast-deep-cloneES2021variablestakefunctionsECMAScript 2019pushtoStringTagletendernoderequiresideformlessfunctionArray.prototype.findLastIndexloadingcss-in-jseslintpluginqueueMicrotaskfromes2016mkdireditorsetarrayregular expressionswebserializationes2018negative zeroconcatless.jsxdg-openmiddlewareInt8ArrayTypedArraysignalsinstallpipeexecutabletesterJSONcolourcss lesstacitObjectrandomclientsetterdiffvalidationcomparewordbreakbabelrgbreal-timeviewmovesettingsajvpostcss-pluginObject.keysopenerio-tspreprocessortypescriptdirsearchbindvaluesterminalarraybuffertestingrateartfindLasthookformexitWeakMaptranspileforEachArray.prototype.findLastUint8ClampedArraybrowserlistrm -fravasortredactphone$.extendreact-hooksexpressirqargparsedragcjkES5watchObject.fromEntriescolumnwalkingzeroauthfile systemhasES2015extendinvariantnopebootstrap lessESWeakSetbytecompilerclassnamesECMAScript 2023deepcopyisConcatSpreadableiterateWebSocketsdirectoryrm -rf0utilityreact-hook-form
1.0.0

14 days ago