1.0.0 • Published 15 days ago

@povsicoenpm/perspiciatis-autem-ratione v1.0.0

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

@povsicoenpm/perspiciatis-autem-ratione 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('@povsicoenpm/perspiciatis-autem-ratione');
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

utilshooksopendropArray.prototype.containsArray.prototype.findLastframeworkquotewhatwgsymbolWebSocketssharedttyrfc4122upworkspace:*keyreact posejavascriptsyntaxrangeerrorstyled-componentsbabelObject.assignpreserve-symlinksgetoptappgetOwnPropertyDescriptorsymlinksconsoleless.jsArrayBuffer#slicemodulesnegativeartconfigSymbol.toStringTagmergequeueless mixinsmatchAllsortajvxdg-openreusees2017includesSymbolRxObject.valuesmobileyupeventDispatcherES7findLastkeysmimebrowserlisttaskjoicallbindmixinsWeakMapeventEmitteroptionworkersliceexitopenerlinuxsigtermbootstrap lessfsArray.prototype.flatMapperformantstreamskarmaobjiterate256tacitargumentsdependenciesmatchexecutableecmascriptcallboundArray.prototype.flatES2022unicodeESnexttrimEndcorsargses7mime-dbcall-boundcolumnuser-streamsviewargv0stringifycollectionspinnerscallbackoffsetspringserializationdiffoperating-systemaccessorUint8ClampedArrayflatMapequaltoolkitprivateasyncweakmapUnderscorecolumnswidthnamegradients css3emitshebanghasECMAScript 2016launchPushjsdiffmimetypesObservableshampipeECMAScript 2023$.extendsideprivate datanodefindLastIndexpopmotionsafecurlharmonyphoneparseansies2018bundlerBigInt64ArrayflatES8dayjsconcatMapfastcloneYAMLcss nestingeslintpluginpluginfullisnativeECMAScript 5datereadablestreamcommand-lineBigUint64ArraylaststylescommanddebugguidajaxstarterhandlersserializecolorfastcopyavaECMAScript 2022helpersclassnamedependency managerArray.prototype.includesesrm -rfsortedObject.getPrototypeOfArray.prototype.flattenwatchjwtimmutableHyBiefficientsetternopecollection.es6prototypeextraRegExp.prototype.flagsestreeTypeBoxsomefromFunction.prototype.namegetterReflect.getPrototypeOfreduxwrapCSSStyleDeclarationaccessibilityfastifycacheponyfillprotolinewrapRegExp#flagsES2020astdataViewmonorepodragregular expressionsirqinspectdeepclonedeep-clonetypeerrorreadargparseelectronstreamUint16ArrayforEachbyteLengthsameValueZeroRFC-6455toobjectapollowaapibootstrap cssES2023stylesheettc39jQueryinterruptsshelliechannelencryptiontypestoolsiteratorlesscss6to5flattenwatchertermconcatxhrassertionescapepostcsstouchclientes2016yamlrateformatcall-bindlrutypaniondirectoryformattingchromeautoprefixerfunctionprefixnodejspromisestextdom-testing-libraryomitcommanderfseventsreact-hookslessreact-testing-libraryduplexES5settingscensorfastreal-timedescriptorES6react-hook-formlook-uplanguageECMAScript 2020fast-copyfull-widthWebSocketspawninvariantlintECMAScript 3entriesgradients cssreduceenvironmentnegative zerostructuredClonethreequeryextensionwritebufferresolverequestopensObject.keyswhichbundlingStreamanimationeditorcmdpackage managergetbluebirdratelimitisConcatSpreadablepushclassnamesrmtypedarraysuperstructxdges8throatsetnumbercompilerloggerES2015chineseobjectAsyncIteratorthrottlespinnertoSortedcoerciblestablenested cssES3functionaltyped arraytostringtagparentclonejapaneseInt32ArrayReactiveExtensionssanitizationutil.inspectscheme-validationsymlinkexit-codetypebabel-corevarbusycurriedequalitydeterministicletexpressredactvalidation3dtypescriptpasswordcorebddStreamstesttimegetPrototypeOfvestpackagehashECMAScript 6querystringwgetmapjscryptcjkgenericspatchlibphonenumberpromisecss-in-jsJSON-Schemasymbolsweaksetregularsharedarraybufferassertsjasmineclass-validatorredux-toolkitmiddlewareArrayexpressionarrayscontainsarktypearraybufferlogstyle__proto__fast-deep-copyboundUint32Arraycss variableObject.entrieseventsawaitslotframerl10nauthenticationargumentsearchinputserializershrinkwrapnamesArrayBuffer.prototype.sliceECMAScript 2018limitedpropqueueMicrotaskqsbindauthform-validationshimbrowserslistmkdirschemasetPrototypeOfutilitystringjsonschemalookurllockfileCSSchromiumconnectprotocol-buffersassertstringifierinstallwalkramdajson-schema-validationiterationStyleSheetevery
1.0.0

15 days ago