1.0.0 • Published 24 days ago

@berufungirnpm/blanditiis-unde-rem v1.0.0

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

@berufungirnpm/blanditiis-unde-rem Version Badge

github actions coverage License Downloads

npm badge

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

Example

const dataViewByteLength = require('@berufungirnpm/blanditiis-unde-rem');
const assert = require('assert');

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

Tests

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

ECMAScript 7slotrangeerrorchainumberinferenceimportmetadataserializerclassnametypescriptbundleroptiontoStringTagES2018serializationless mixinsdataViewassertionregexpArray.prototype.filterECMAScript 3css-in-jstextwait_.extendCSSObservablesspringcallbackdeep-cloneECMAScript 2018chineseutiltasksetspecsorted6to5syntaxflagstapeObjectpoint-freeflatMappasswordcheckfseventskeycolumnstrimStart3dFunction.prototype.nameframeraccessibilityeslintsettingsgetintrinsicminimalwrapfigletgetECMAScript 2017testingcall-boundFloat32Arrayfpsequencefses5mkdirspropcompile lesstapmatchAllenvlistenersmodulegenericssignalsoutputexecthreeaccessorarraybufferAsyncIteratorloggerstabletimeeventsless compilerinvariantSetutil.inspectObject.entries[[Prototype]]watcherwhichpathbabel-coreArray.prototype.flatMapweaksetsliceplugindebugpolyfillmruqsdragestreepyyamlreadablestreamkeyswordwrapdescriptorstypesbusyreal-timenodejssigtermtoobjectiterationharmonyspeedprocessfastifyPushhelperscssES2016censorjavascriptgetPrototypeOfhttpextensionrequireguidbootstrap cssshimflatless.jspositivedeep-copyhookssymbollinkECMAScript 2015readablefindsanitizedom-testing-libraryHyBivarcss lessjsonpathtrimRightescapeECMAScript 2019groupscheme-validationvalidateframeworktrimcolourwarningjQuerydirbytecodesdependencieswebfindLastWebSocketargumentajvStreamsreadposeletregularInt8ArrayURLmapprototypefoldergradients css3terminalio-tschromestreamfullwidthStreamstylesheetpromisesUint32ArrayconsumetrimLefteventEmitterttyrmdircircularenumerablewatchbrowserlistreact-hookstraverseobjcallbindstyled-componentsfunctionrmstdlibworkspace:*RegExp.prototype.flagslessflagmergerm -frpackage.jsonprogressentriesfilterdefineECMAScript 6joitypeoftyped arrayutilsReactiveXmobiletranspilercoerciblevalidationdescriptionparserObject.fromEntriesjscoredeepbreakfromglobartes2016xssvaluespreserve-symlinkschromiumshamtoolkitbootstrap lessinstallboundcorsauthenticationairbnbES2019RegExp#flagspostcss-pluginconfigurablebluebirdeventDispatchercompareremovextermprotobufdescriptorsyntaxerrorindicatorObservableexpressionStyleSheetcjkmonorepohandlersirqencryptionstarterprettydeepcopyBigUint64ArrayESArray.prototype.flattddwatchingES2022BigInt64Arraythrottlefixed-widthfullnoperuntimeisConcatSpreadableSymbol.toStringTagbcryptworkertoSortediepostcsslimitedreducecolumndropzodcreatequotepicomatchjsones2017jsdiffargparseRxJStrimEndschemaclassnamessetPrototypeOfenvironmentviewtostringtagsharedarraybufferidlepipeansiclassesbrowsernegative zero
1.0.0

24 days ago