1.0.0 • Published 22 days ago

@rabiepenpm/earum-labore-illum v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
22 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('@rabiepenpm/earum-labore-illum');

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

validationfindLastIndexlazymiddlewarewordwrapTypeBoxautoprefixerECMAScript 5fixed-widthvalidatetestingmomentspeedgenericstoobjectpropertiesmochareducebyteOffsetfunctionalrapidiedomlook-upCSSArray.prototype.filterTypedArrayshellfpsnodejsautoscalingelmarktypephonestyleguideeventsECMAScript 2022positivegroupByutilclassesmake dirpolyfilltypedarraystslibextendes6weakmapstringifywafloggerdom-testing-librarycallbackmobileesgetintrinsicECMAScript 2021cacheconfigviewnegativeliveconcurrencyless mixinsdependenciestc39nopewhichform-validationgetOwnPropertyDescriptorcryptoptimizerhasOwnPropertyObject.fromEntriesvalidrmframeworklockfilesqshttpstrimes5assignplugin256settingsexit-codestringYAMLObject.isprototyperegexInt32ArraySetrobustdefinePropertycurllesscssflatsuperagentES7file systeminputjapanesetypesafeRegExp#flagspropertyfast-deep-copycomputed-typesserializerfromargvmonorepoObservableSymbol.toStringTagsharedarraybuffercoreIteratorhardlinksmapsequencemacosenvironmentcloudsearchpasswordio-tsexpressreactmixinsebsES6appcall-bindpackage.jsonbundlingStyleSheetFunction.prototype.namepnpm9ec2wordbreakschemareadpredictableshebangUint32Arraytddclassnamesavacorsduplexgraphqlinternal slotwatchingmodulesnsindicatortimeUint16ArraysesargsdescriptorscloudtrailformattingjQuerycompareajaxthroatECMAScript 2016protocol-bufferscollectionprotobuftostringtagInt8ArrayexitmkdirpvaluesString.prototype.trimhasOwnloggingless.jszerofsl10nassertspersistentwhatwgdeepttytoolsconsumeeslintconsole-0promisesregularcompilerformdebugflattenrequirebusyerrorrecursiveemojibuffersfilterESinvariantmimetypesnegative zeroECMAScript 2020fluxchromemapreducerandomrds[[Prototype]]gettereventDispatcherthrottlediffequalitydeterministicpostcss-pluginrm -frlimitreplayimportexportcloudfrontsuperstructtapeinspectamazonarraybuffersigintPromiseAsyncIteratoreslintconfigsyntaxerrorkeysswfrfc4122restrmdirpromisereadablestreamspinnerstoArraycolumninstall__proto__postcssfullwidthmatchincludesserializationestreepackageshttpencryptionfunctionassertioncss variablebddcallboundextensionspecECMAScript 2019ES8efficientjsdomredux-toolkitArray.prototype.containsTypeScriptjsdiffenvsetPrototypeOfparsingconfigurablestyleformsjsxsearchjsonpathUint8ClampedArraysameValueZeroajvbufferbounddeepcopyroute53metadatastreamsshimcallbindqueueStreamslruoffsetfetchidledeepclonesymlinksinstallerclonekeygroupenumerablesymbolsworkspace:*ECMAScript 7charactersmimestdlibsigtermReactiveExtensionslessBigInt64Arrayeveryfinduplimitedcollection.es6javascriptMappreprocessorclichaiArraytyped arraymergetrimRightspinnerquerystringsimpledbexpressionjasmineqsstoragegatewayuuidratetrimLeftbreakfull-widthvariablesconcatMapstatequeueMicrotasklinuxFloat64Arraymkdirsmatchesterminalreact-hookshelperselasticachetelephonelibphonenumberwarningfind-upzodhas-ownbannersymlinkmatchAllnameseast-asian-widthstyled-componentscss lessflagjwtcharacterbindpackage managerECMAScript 6gradients csseslint-pluginescapecopypruneeslintpluginbluebirdES2015languagefilefastvestes8dataViewbcryptECMAScript 2023createnodecodessetterES2020utilitiesformattypescriptcloudwatchscheme-validationwgetwatcherfast-deep-clonestylesfastifyrm -rfparentschemequotecolumnsregexpartcall-boundutil.inspectresolveirqdependency managercensortrimStartrgbnumberArray.prototype.findLastoptimisttestproxystatuscore-js$.extend@@toStringTagstarterObject.entriesfastcloneObjectconcatES2018intrinsictaskjsreal-timesomeglobalpipebootstrap lesschannelInt16Arraywindowstapprefixlistenersvalueisdataviewinvisualawesomesaucehigher-ordergetPrototypeOfclass-validatorlastArrayBuffer#slicepaths3dateES2023es-shimsjestcss-in-jsdataReflect.getPrototypeOfdeep-clonegdprextraastxhrbyteLengthHyBiwebbrowserslistpyyamlObject.getPrototypeOftypeerroraccessibilitychromiumprocessrequestparsepicomatchtextwalktermfullsinatraasynccheckRegExp.prototype.flagsprivateendpointbootstrap cssglaciersafeconnectagentPushemitWebSocketsRxJSsymbolRxlengthgradients css3statelesses-shim APIdescriptionflatMapdirectorycolouroperating-systemstreams2defineECMAScript 2015clientmakecssdeleteequalfseventsArray.prototype.includesobjECMAScript 20180importyamljshintenderratelimitcommand-linearrayStreamdebuggerSymbolworkflowurlexecWeakMapi18nhasshamtypeswatchFileES2019sharedMicrosoftshrinkwraputilitysignalscirculargetlinewrapregular expressionstypaniondeep-copyoptionawsroutertypedcloudformationenvironmentsregular expressionpreserve-symlinksisConcatSpreadablereact-hook-formparserminimaltoStringTagArrayBuffer.prototype.slicekinesisES3Underscoredynamodbwidthprogresswritablekorean
1.0.0

22 days ago