1.0.0 • Published 1 year ago

@devtea2025/reiciendis-ut-sequi-sint v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@devtea2025/reiciendis-ut-sequi-sint Version Badge

github actions coverage License Downloads

npm badge

Get the byteOffset 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.byteOffset has been deleted after this module has loaded.

Example

const dataViewByteOffset = require('@devtea2025/reiciendis-ut-sequi-sint');
const assert = require('assert');

const ab = new ArrayBuffer(42);
const dv = new DataView(ab, 2);
assert.equal(dataViewByteOffset(dv), 2);

Tests

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

flattenfunctionalfileestree_.extendvalidtermttyreduxebssyntaxerrorprotoqsschemaasserttypesfind-upUint16ArrayECMAScript 2023Uint8ClampedArraytrimEndduplexsameValueZeroischromium0findLastxhrStyleSheetObject.getPrototypeOfjavascriptsnsbyteOffsetprototypehandlersargparseio-tspicomatchreadablespinnereslintutiltypedarraysyupstatusbannerdefaultbundlingsortmimeperformantredactawaittddclass-validatorajvbreakECMAScript 5parsinggetoptObject.assignargumentstoSortedcharacterkeyobjcall-binddom-testing-libraryemojiformhttpscall-boundhardlinksdeepfunctionES2015react-testing-librarypluginRxwritablecsssharedarraybufferES2016optimizerObject.entriesflagsgetdayjskeysSymbol.toStringTagartcss nestingworkermodulessymbolssinatramoduleprogresspolyfillstringifierexefastcopylengthinternal slotassertsqueryloadingcss-in-jsweakmapRFC-6455efficientes5RegExp#flagsescapeTypeBoxrecursivehas-ownbootstrap lessbuffercommandyamlframeworkeverytelephonecallbackcolumnshotsigtermprefixcommandercallformsfsstableinternalfastclonebcryptsuperagentencryptionparentspropertyArray.prototype.filterjapanesescheme-validationwalklazyqueueMicrotaskviewlesscssArray.prototype.flatMapsimpledbrequestdatejsdomfilterformathelpersmochaansies8ES5trimStartfigletxdgES2019installxtermprivatehookformregexJSON-Schema.envaccessores2018byteLengthserializerratelimitsearchfunctionsdeepcopyhasOwnPropertyeventDispatchercryptECMAScript 7accessibilityFloat32ArrayFloat64Arraystreames2015protocol-buffersfixed-widthreadminimalECMAScript 2017dircallbindinterruptses-shimslinkArray.prototype.findLasttextserializexdg-openbeanstalkvestimportarktypesettermetadataparentES2023idlecloudformationcloudsearchlessarrayagentSymbolcorshooksendermatchesdeep-clonefetchwatcherlogemroptiondeepclone-0spawnformattinginlinuxexecdebuggertrimRightArray.prototype.includesprivate dataES2018directoryargvmapreduceutilitiesbuffersglacierarraybuffernativequerystringownidentifiersworkspace:*Object.keyssetPrototypeOfspeedomitArray.prototype.containssortedrangeerrorfoldermapshamuuidstreamstypesafetyped arrayasynctakedifferror-handlingclinameswhichexpressionredux-toolkitautoscalingsequencearraysponyfillstreams2reuseObjectObject.fromEntriesrmdirWeakSetfseventsboundcallboundrouterfindupObservablesObject.valueselectrontypedarrayreact-hook-formclonetypedESstartnegativevariables in cssmime-dbcodesurltsglobalwatchawsArray.prototype.flatindicatorUnderscorewarningreactES2022gradients cssflagzodexecutablestringifyreadablestreamsymlinksenvironmentsirqsharedwordwrapmergeconcatMaploggerimmerstdlibwafqueuepredictableObject.definePropertymovespinnerskarmanested cssECMAScript 2022getPrototypeOfkinesiseslintplugindependency managerrestmatchAllstyled-componentspushrandomArrayBuffer#slicemruphonebindtypanionstateschemeloadbalancingtaskjsdiffcss lessArray.prototype.findLastIndexoptimistequalflatMapnameecmascriptfast-deep-copyform-validationtoolkitstarterec2idvalidateeast-asian-widthcmdutil.inspectvisualdescriptorsmkdirscacherm -rffastdescriptorlistenersReactiveXhasOwnnegative zerohashautoprefixerenvironmentopencorefast-clonechannelpromises@@toStringTagwebfast-copyconsoleruntimestoragegatewayconsumetestlinewrapmake dirUint8Arrayweaksetargumentlivepackagesjsiteratorsignalses-shim APIcompile lessWeakMapcreatebrowseroncewindowsfull-widthtapedefinePropertystyleguideObservableentriesprunewidthguidrapidflatmonorepoinferencechinesefastifybrowserlistregularthrottlecolorsassignassertioncomparegradients css3argsURLlrucomputed-typesES2021jQueryECMAScript 2021colourconnectBigUint64ArraySetrestfulbusyastpackage manageropensrm -frpositiveamazoncolumnsomebrowsersliststyledomchilditerateimportexportresolveinstallerrdsgdprfluxCSSpostcss-pluginless csskoreanInt16Arrayrgbless compilerInt32ArraysafeisConcatSpreadableString.prototype.trimmatchcoerciblejwtRegExp.prototype.flagstoStringTag[[Prototype]]RxJShasenvpackage.jsonlooktappatchECMAScript 3valuesFunction.prototype.nameIteratorjoiregular expressionfile systemjsxes-abstractstatelesspreserve-symlinksconcatimmutableshimmulti-packagemomentoffsettostringtagMicrosoftArray.prototype.flattentestertypescriptlastjshintslotECMAScript 2020fast-deep-clonedotenvstringeslint-pluginpersistentdefinemkdirppromisebyteArrayBuffer.prototype.slicewriteurlsvaluebddi18ncircularauthenticationless mixinsbatchlaunchexitvariablesairbnbwebsitesignalvpcparsestylingclassnameinvariantutilityeventEmitterdeletecollectionArrayYAMLeslintconfigiamupshrinkwrapwalkingHyBislicecheckPromisemkdirjasmines3__proto__chromeieroute53sesTypedArraytrimremovecharactersnodequotepyyamloperating-systemESnextendpointpipeelbpropavaglobalsenumerableprettyECMAScript 2018stylesMapdynamodbtypenodejsexit-codefullwidthrequirea11yincludes256containsgroupintrinsicrobustcloudtrailreal-timecolorcjkdataViewStreamelmWebSocketsauthECMAScript 2016descriptionmaketslibgetterparsertrimLeftbootstrap cssES8look-upbundlerglobelasticachenumbersymbolECMAScript 2015libphonenumberECMAScript 2019timeES6URLSearchParamslanguagemixinscode pointses2016openerpreprocessormobileBigInt64ArrayStreamsrmgetintrinsicString.prototype.matchAllsidesqsexpressfpscryptopostcssswfchaitestingtypeofcss variableregular expressionsdataview$.extendinspectdependenciescommand-linereact-hooksrfc4122inputvalidationappdebugjsonPusheslimitmimetypeswaitdropprotobufmiddlewareshebangless.jsgenericsapinpmcompilerlimitedajaxwordbreakstructuredClonefullpathWebSocketconfigawesomesaucepasswordlockfilecloudfrontsetImmediatesetregexpReflect.getPrototypeOfextrajsonpathjestgroupByclasseswatchingserializationwgetshellgetOwnPropertyDescriptortc39eventsdeep-copyTypeScripttraverseperformancemacoscollection.es6ES2017es6toolsasciiextensionfindLastIndexES3Object.ishigher-ordereditorunicodepackagehttpdeterministicforEachspecextendequalityprocesserrorterminalcloudwatchsigintpnpm9lintstylesheetreducerbluebirdES7replayemitcore-jstoArraytypeerrorcurlsuperstructobjectvarsratezeropropertiestouchsyntaxuninstallnopecensorInt8ArrayArrayBufferconcurrencyReactiveExtensionsconfigurablees2017loggingdatareduceiterationworkflowproxysettingsfromECMAScript 6whatwgsymlinkwrapoutputdatastructurethroatfindl10n
1.0.0

1 year ago