1.0.0 • Published 13 days ago

@ptkhanh94npm/error-magni-doloremque v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

@ptkhanh94npm/error-magni-doloremque Version Badge

github actions coverage License Downloads

npm badge

Get the ArrayBuffer out of a DataView, robustly.

This will work in node <= 0.10 and < 0.11.4, where there's no prototype accessor, only a nonconfigurable own property. It will also work in modern engines where DataView.prototype.buffer has been deleted after this module has loaded.

Example

const dataViewBuffer = require('@ptkhanh94npm/error-magni-doloremque');
const assert = require('assert');

const ab = new ArrayBuffer(0);
const dv = new DataView(ab);
assert.equal(dataViewBuffer(dv), ab);

Tests

Simply clone the repo, npm install, and run npm test

fileUint8Arraydeep-cloneclientmonorepoTypeScriptes-shimssettingsformsprivateES2021childavaArray.prototype.includesminimal3dquerystringcachewatchkeygroupwindows6to5modulesparsehashwatchFileless.jsUint8ClampedArrayansicompiler$.extendmomentchromeArrayBufferECMAScript 3esletes8superstructdomcss-in-jsreadsequenceerrormacossharedmobilegetoptFloat32ArrayrangeerrorbufferconsoleemojiconcatbusysignaljavascriptdebuggerpropertyhasOwndeterministicawesomesauceCSSStyleDeclaration[[Prototype]]koreantoArraySymbol.toStringTagWebSocketsjsdominstallECMAScript 5animationAsyncIteratorlengthformcreateerror-handlingiterateexeECMAScript 2018es5siginthandlersECMAScript 2023linki18nchineseassignbabel-coreES3bindnested cssbluebirdfunctionbddargumentsECMAScript 2021tsrequestECMAScript 6writelimitArray.prototype.flattenES7transpilerString.prototype.trimunicoderedux-toolkitdescriptorqueuelrugetintrinsicframerECMAScript 2022ECMAScript 7assertionES2019__proto__parentsObject.getPrototypeOfforEachfixed-widthRegExp#flagsObjectextensionURLSearchParamsES2018eslintES2022coercibleprotocol-buffersfastcopypoint-freeenvironmentpersistentstylescharactersUint32Arraystringifierarraybufferstreamajvvalidfetcheditorramdaratelimitedfast-deep-clonejsonimmerlookformatformattingworkspace:*breaksameValueZerojapaneseiterationqscirculardeletereducermrutimeemitfromreactsetImmediatefunctionsjsonschemaassertarrayHyBitypesafehookstelephonefantasy-landtypedarraydependenciessymlinkswalkprototypenumbercodesclassnamestatusBigUint64Arraycss nestingomitjson-schemafunctionaltypeoflesscsscss variableweaksetfast-clonefindcolumnequalityvarharmonybatchguidentrieswebsiteestreeMicrosoftargumentpipecssbrowserslistsyntaxerrorlintRFC-6455stringserializeutilitiesclassnamesjsbcryptapollojQueryttygettersetPrototypeOfpopmotiongetcallboundregexes2018chromiumObject.fromEntrieseslintpluginStreamsjasminefpopennegative zerokarmathreesuperagenttrimnativeinferencegraphqlmatchesnopeiecall-boundtc39accessibilityeslint-plugindeep-copyspinnerdefaultassertssortECMAScript 2015phoneECMAScript 2016apipromisesymbolECMAScript 2019jestshamcommand-lineArray.prototype.findLastIndexdropconstloggingArray.prototype.filterfastcloneES2017xhrless compilerrapididleconcatMapcollection.es6package managerfiglettoolkittypescriptES8stylingparserxdg-openmkdirobject0fullwidth.envcolorsIteratorconcurrencysanitizecontainsloggerjsxisstringifyencryptiongradients csswaitbootstrap lessrfc4122multi-packageasyncString.prototype.matchAlla11y256ratelimitpreserve-symlinksdirectoryisConcatSpreadablestreamsperformantwidthreduxhookformupdescriptorsES5zodmkdirpimportsortedcommanderbrowserobjloadinglazybytecmdJSON-Schemastylebootstrap csstermlibphonenumberECMAScript 2020shebangeast-asian-widthcurlwatcher
1.0.0

13 days ago