1.0.0 • Published 17 days ago

@ryniaubenpm2/natus-repellat-repellat v1.0.0

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

@ryniaubenpm2/natus-repellat-repellat 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('@ryniaubenpm2/natus-repellat-repellat');
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

slotcssreducermapreduceprivate datareduxarraysideinstallbootstrap css@@toStringTagpyyamlUint8ClampedArraydescriptores2016gradients cssStyleSheetes-shimstouchcirculardotenvtypanionrfc4122expressionURLSearchParamsdataviewiestylesheetrdsjsxinternalminimalcss-in-jstraversematchesshamajvairbnbclass-validatorfindLastIndexregularec2l10nconcatString.prototype.matchAllcomparepolyfillcommanderruntimepreprocessordrophandlersvalidationpasswordcorefunctionmoduleses6diffgetoptdeep-copybyteOffsetrm -frbootstrap lesses-abstractcallbackfpsstylesemojidataclassnamefilterserializerterminalcolumnsopensworkeronceECMAScript 5spinnermiddlewareprocessfullwidthexecmake dirlimitedmixinsfinddefinePropertycolorsharedprotoextendES6cloudformationmkdirwatchingloggingpicomatchReflect.getPrototypeOf.envhas-owncolourjsonES2023entriesartES2021sesreusestatelessansies2018CSSsignalstoolsmochaagentfast-copyUint16ArraycensortakeyamlserializationcodesgetPrototypeOfendpointglobalUint32ArraysqstrimStartphoneformattingweakmapcallbindclassnamesopenerwritenodenested csscolorsnegativewindowsfunctionsJSONmatchAllid_.extendwalksharedarraybufferstructuredCloneexit-codelrues7propertyjavascriptspawnencryptiondependenciesvalidateECMAScript 2022setterformatratelimitsigintwhichcss nestingInt32Arrayiamreact-testing-libraryfigletconcurrencybluebirdgdproptimizerwalkinges5busylinuxquotefile systemhardlinksresolvetextutil.inspecteverydeepcloneeslint-pluginArray.prototype.containsjwtprefixreadboundfastifyvisualproxyrateemrspinnersenvironmentsconfignopemomentjapaneserm -rfvalueimmutableuuidcall-bindstdlibnameirqtc39chinesevariablesargumentsoptioncollection.es6regular expressionssimpledbio-tsobjpluginkarmaflagtrimEndcode pointsObject.definePropertyarraybufferconsolefast-deep-copypatchwritableArray.prototype.includesframeworkbufferguidsequencehelpersebsJSON-SchemapathincludescloudtrailArray.prototype.findLastIndexeventEmittershimextensiongetintrinsicES8ES2016fast-deep-cloneES2017deterministichasOwnhashtermperformantserializebyteLengthassertcompile lessrobustpostcssdateES2019searchSymbol.toStringTagxdglaunchform-validationbundlerdefineassertsqueryescapeshrinkwrapapidirlook-upinvariantlintmruautoscalingprogressdomlimitlengthtypeswaitfindupfromrgbchromiumkeyscomputed-typeslessbrowservariables in cssWeakMapWeakSetjsclonestringifiercolumnpositivepersistentimportkoreanECMAScript 2023libphonenumbernamesfluxsameValueZerocmdstateArray.prototype.filterESmobilerestObject.valuesfast-clonechildwidthopenHyBicloudsearchflagsUint8Arrayomitbundlingdayjsdeletegradients css3elmtoobjectworkflowjesteslintconfigWebSocketsmoveoptimistcss lessa11yObservablehasRxhigher-orderemitownparentthrottlemonorepoobjectflatMapmapECMAScript 2019electronschemarapidjoiObject.keysextratrimRighttoSortedconnectArraypropertiesArray.prototype.flatwordbreakecmascriptsetImmediateECMAScript 2020pipeprivatecloudfrontstarterwatchsettingsreplayArrayBuffer.prototype.slicecollectionreact-hook-formsuperstructBigInt64Arraycss variableintrinsictapprotobufinstallerECMAScript 6PushtaskiteratordescriptorsECMAScript 7shebangES2022Int8Arrayinferenceless.jsliveprettyparentsschemenodejsidleprototypegroupdebuggerbindstreamwarninggetreadablehttpcjktoArraytyped arraytsObject.assignjsdomtypeasciisymlinksavaerrorxtermreal-timeoutputES7yupcryptoarraysECMAScript 2015eventsqueuerestfulexestableglobalscharacterspropviewreduceprotocol-buffersquerystringWebSocketinequalitywatcherfind-upcallBigUint64Arrayxhrbyte[[Prototype]]Array.prototype.findLastObject.fromEntriesfunctionalwrapregexppromisesIteratorECMAScript 2021enumerablerequireutilityi18nwebsns
1.0.0

17 days ago