1.0.0 • Published 15 days ago
@wemnyelezxnpm/neque-iusto-illum v1.0.0
@wemnyelezxnpm/neque-iusto-illum
Get the byte length of an ArrayBuffer, even in engines without a .byteLength
method.
Example
const assert = require('assert');
const byteLength = require('@wemnyelezxnpm/neque-iusto-illum');
assert.equal(byteLength([]), NaN, 'an array is not an ArrayBuffer, yields NaN');
assert.equal(byteLength(new ArrayBuffer(0)), 0, 'ArrayBuffer of byteLength 0, yields 0');
Tests
Simply clone the repo, npm install
, and run npm test
harmonygraphqlloadingvarflattenutilsreal-timenopemochahttpsmimevaluessharedarraybufferecmascriptES3PushArrayconfigurablelinuxESnextrfc4122listenersbyteOffsetxhrfunctionforEachregular expressionstoArrayrgbregularpackage managerajaxencryptionopenmakelimitnumbertypeofclipackageclienthooksArray.prototype.findLastfindLastIndexarraybufferformattingwebsiteES2016io-tsJSON-SchemahasOwnfilterstringifiernodeArrayBufferdescriptorscoreescapelimitedwarningBigUint64ArrayJSONserializationtypanionpropertiessafeasciiapolloreact posespringredactStreamstermemitRxerror-handlingqsbyteconnectSymbol.toStringTagcss lesses2015flagmatcheschildpositiveless.jsdropdeepcopynamesnpmform-validationjsonschemapushkoreancollectionReactiveXslicedom-testing-libraryStyleSheeteventEmitterlastFloat32Arrayfast-deep-clonegroupBydiffcompareIteratoresschemagenericsdefinejestnodejsstartuuidtestfastclonemacosdebugStreamcssvalidationtranspilerSeteveryconcurrencydatafind-upspawnes2018Object.assigndeep-cloneconcatMap0WebSocketterminalkeyshimwriteECMAScript 7stylesthroatidlemixinsxdgstreams2domtyped arraywaapivalidcode pointsUint8ArrayisConcatSpreadabledependency managercoerciblesignalsperformancees6ESObject.fromEntrieswhichsameValueZeroparentsrateES5commanderconstinvariantanimationsearchinternal slottoolsnegative zeroreducerecursivepersistentfindupstructuredCloneslotshamjsdiffbreakcore-jspolyfilldirectorycolorrandomdescriptorreadableparentes2017fast-copyArrayBuffer#sliceoutputtraversefullwidthFunction.prototype.nameHyBiprotobufobjiteratorcollection.es6arktypeshebangtrimEndregexscheme-validationenumerableES7getOwnPropertyDescriptorlrumoveirqexit-codegetPrototypeOfcss-in-jslesstostringtagbundlerECMAScript 2023touchwatchingoptimizermkdir256spinnerspostcss-plugineslintes7wordwrapjsdomArray.prototype.filterdeep-copyxssECMAScript 2021setletECMAScript 2018speceast-asian-widthcharacterskeyshookformstylingfsjsonexecutablebluebirdbyteLengthchromepropreact-testing-libraryenderpostcsseventDispatcherRFC-6455callboundresolvequeueentriestypespicomatchObject.valuesvalidateshellpureexevisualsignalYAMLtrimStartdotenvES2019pruneflagsrequestreact-hook-formrmdirprogressbootstrap lessajvcreateasyncargvhelperstoStringTagRegExp#flagsstringArrayBuffer.prototype.slicerangeerrorsymlinkwatchboundserializerstreamtranspilewatchersymlinksjasminesuperagentweaksetobjectfast-clonefile systemmobileremoveECMAScript 2019japanesenameprototypeconsumepathmake direslintconfigInt16ArraytoobjectgesturesinternalgetintrinsictimedataViewtypescripttapecolourbootstrap cssieyupBigInt64Arraydirhigher-orderassertsdescriptionvariables in cssexpressiontesterstylesheetcss nestingcensorArray.prototype.flatMapstylethreepropertyclonetypedpopmotionarrayqueryObject.definePropertyECMAScript 2020validatorUint16Arraynested csslaunch$.extendtapworkspace:*accessorminimalbrowsermodulecrypturlperformantmatchshrinkwraplockfilerm -frvariablesloggingestreeenvironmentiteratefindchromiumpreserve-symlinkscall-boundtrimfastifyArray.prototype.containschannelinputpackage.jsonttycharacterlinewrapcall-bindes-shim APIcss variableurlsstatelessefficientexitbddauthenticationformcomputed-typesexpresstypeerrorutilitytoSortedqueueMicrotaskfunctionalchaisymbolsUint32Arraysomejsonpathtelephoneargumentsfigletcallbindimmutablerapiddependenciesregular expressionwaithandlersformscors@@toStringTagansieventsart6to5rm -rfInt8ArraylengthloggerPromisecontainsmkdirsjsxsidepnpm9callmatchAlljson-schema-validationclassnamesgradients cssuninstallregexpwgetpoint-freebcryptenvbindextendmetadata.envreactmime-dbES2023es-shimsparseconsoleECMAScript 2017framerless compilerprefixcommandhttpjwtxdg-openconfigsharedcallbackcurlUnderscorebufferxtermsigintramdaWeakSetprotojson-schema-validatori18nRegExp.prototype.flagsTypeScriptES2015defaultbrowserslistoncefull-widthequalityfullreducerES8syntaxwordbreakrequireES2022pipeless csswritablegroupwrapoptionES2020pyyamlES2017monorepozodrmdeletesettingsquerystringtslibsuperstructspinnergdprbrowserlistfastopenerwhatwgbusyfunctionsfast-deep-copyes-abstractequalcryptosetPrototypeOfutilWeakMapES2021extramruschemefolderuser-streamsECMAScript 2016checknegativeTypedArrayautoprefixerlintjavascriptString.prototype.matchAllcurriedstyled-componentscopyredux-toolkitsortmergeweakmap-0inspectsorteddatastructurepromiseopensdefinePropertyMapauthArray.prototype.flattenclassesclass-validatorjslanguagedeeptestingmimetypesURLlogvaluecolumnbabel-coreexecwalkless mixinstc39flatMapincludesbufferstypedarrayhardlinkses8deepcloneaccessibilitythrottlecmdindicatorreuseelectronastES6mapfindLastjQueryinferenceassertArray.prototype.findLastIndexstablerobustObservables_.extendargumentnativea11yinstallerReflect.getPrototypeOf3dairbnbfilekarmajson-schemaframeworksequencemomentreadInt32ArrayMicrosoftextensionURLSearchParamsbundlingtoolkitwatchFilepatchsanitizeeslintpluginstatusimmerspeedECMAScript 3gradients css3preprocessorunicodefromECMAScript 6util.inspectdateObjectzerodayjsarraysstreamstaskupoffsetsanitizationreadablestreamtrimLeftArray.prototype.includesvestString.prototype.trimbatchES2018babelmulti-packageerrorcodesemojiprivateCSSStyleDeclarationfantasy-landiterationinterruptsserializeprocessmiddlewarelook-upinstallconcatcjkdataviewargparseviewintrinsicdeterministicFloat64Arraytsreduxcompiler__proto__bannerawaitfetchObservableeditorsigtermruntimeArray.prototype.flatlookECMAScript 2015fixed-widthguidjoipackagesoperating-systemmodulestrimRightclassnamewidthObject.keysprivate dataECMAScript 2022es5globduplexassertionwindowsdebuggerCSStacitformatTypeBoxprettyponyfillstarterObject.isassignsetImmediatefpUint8ClampedArrayratelimitcolorsmkdirpapiutilitiesworkercacheReactiveExtensionsstringifyObject.getPrototypeOfcircularcompile lessavaparseres2016fastcopylesscssgetterlibphonenumberargshashsettertypereact-hooksSymboltddquoteidprotocol-buffersimportcommand-lineyamlAsyncIterator
@crabas0npm/enim-animi-iure@ffras4vnpm/iste-soluta-repellendus@ffras4vnpm/ullam-odio-aspernatur@wemnyelezxnpm/a-illo-eos-qui@wemnyelezxnpm/aliquam-accusantium-porro-voluptates@wemnyelezxnpm/architecto-eligendi-ex-unde@wemnyelezxnpm/autem-est-molestias-numquam@wemnyelezxnpm/consectetur-eligendi-mollitia-enim@wemnyelezxnpm/consequatur-vel-distinctio-quia@wemnyelezxnpm/corrupti-voluptatem-pariatur-assumenda@wemnyelezxnpm/cum-assumenda-et-ad@wemnyelezxnpm/dolor-deserunt-reprehenderit-sunt@wemnyelezxnpm/esse-saepe-vero-excepturi@wemnyelezxnpm/ex-laudantium-dignissimos-nesciunt@wemnyelezxnpm/excepturi-odit-culpa-magnam@wemnyelezxnpm/facilis-velit-quam-ducimus@wemnyelezxnpm/illo-possimus-quas-ipsa@wemnyelezxnpm/illum-possimus-officiis-eius@wemnyelezxnpm/inventore-totam-iste-pariatur@wemnyelezxnpm/nam-sequi-vitae-eveniet@wemnyelezxnpm/nam-suscipit-commodi-nam@wemnyelezxnpm/odit-placeat-delectus-iure@wemnyelezxnpm/officiis-nesciunt-quisquam-delectus@wemnyelezxnpm/quas-quo-aperiam-quasi@wemnyelezxnpm/quis-consectetur-nisi-dicta@wemnyelezxnpm/quo-alias-sapiente-eveniet@wemnyelezxnpm/sit-ad-nesciunt-possimus@wemnyelezxnpm/temporibus-fugiat-ipsum-veniam@wemnyelezxnpm/temporibus-non-reiciendis-fuga@wemnyelezxnpm/tenetur-architecto-laborum-hic@wemnyelezxnpm/vel-nemo-fuga-veritatis@wemnyelezxnpm/vero-tempore-impedit-reiciendis@wemnyelezxnpm/voluptas-dolorem-earum-corporis
1.0.0
15 days ago