1.0.0 • Published 1 year ago

@tea062024/facilis-fugit-quam v1.0.0

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

@tea062024/facilis-fugit-quam Version Badge

github actions coverage License Downloads

npm badge

Get the byte length of an ArrayBuffer, even in engines without a .byteLength method.

Example

const assert = require('assert');
const byteLength = require('@tea062024/facilis-fugit-quam');

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

traversesymboljestObject.assignframeworkES2016speedassertionURLreadabledombrowsersaferangeerrorasciilook-uphooksiaminstallmime-dbrobustfast-deep-cloneArrayBuffer#slicefromCSSStyleDeclarationregulartypereadablestreamfstypeerrorinputtrimLeftrm -frmakeprocessoutputttycollectioncolumnexit-codesetImmediatecloudformationStreamseventEmitterSetawesomesauceeast-asian-widthastbatchfunctionschinesearraydebugpostcss-pluginhasOwnPropertypersistentansiES2018functional.envbusyfastifytextmergespinnergetoptinvariantcontainsstringsyntaxerrorutilityshellpostcssnodeArrayBuffer.prototype.slicecharactersformatchromei18nidleReflect.getPrototypeOfparentsnodejslanguagees2017Uint32ArrayfindLastelasticacheECMAScript 2020hasOwnpluginmodulebeanstalkflattendataviewthroatlistenersimportexportkinesisminimalkarmaflatMaplockfilecsssharedarraybuffertyped arraysuperstructhigher-orderreusewgetassertFloat64ArraysetPrototypeOfserializefast-clonesidefastcopyupviewfast-copyparsingeventDispatcherES2023xtermappcensorartlrudirectoryECMAScript 5regular expressionsUnderscoreopenclass-validatores-abstractduplexCSSes2018lengthObject.keysexpressionTypeBoxstringifysignalwhichsinatraauthspinnersES5parenttslibstreamspushfastclonebundlerrestfularraybuffermovecolorsstylesheetaccessor-0has-ownmatchesslotcloudwatchperformantjsdiffpromisepnpm9fastgradients cssmixinspropertiesAsyncIteratorgetPrototypeOfincludesencryptionclassnamesdynamodbpathprotopreprocessorless cssdeepclonees8make dirhelpersairbnbwarningbddoptionlookbundlingdatecurlsymlinkswatcherkeycloudfrontstylesArray.prototype.flatjshintES2017visualimporteslintpluginvalidationprivatedayjsTypedArraygdprtrimStarta11yrecursivewindowsRegExp#flagssettingscommand-linejsonpathtapfindupreplayshebangschemaquerystringHyBicallbindsymbolssimpledbconcatECMAScript 2022predictableglaciergroupByfilterMicrosoftautoscalingcoreeventsiterationtostringtagcss-in-jsdependenciesSymbol.toStringTagfinddeepconfigurablehotECMAScript 3prefixwalkingES8macosglobalreact-hooksio-tsgenericsdeep-copyispackage.jsondefinerandomconcatMapECMAScript 2023joienvironmentsratemonorepoless mixinselbpipehttpruntimelimitprotobufreactBigInt64ArrayBigUint64Arrayoperating-systemnameassertslintshimredux-toolkitflatObject.definePropertyiteratecode pointsstreamtypesafetouchObjectwalkes-shimscorsreduceterminalrm -rfpropPromisebcryptaccessibilitywatchreact-hook-formsyntaxserializerconfigArray.prototype.filtersameValueZeroWeakMapcheckisConcatSpreadablelessjsonStyleSheetpackageefficientguidhttpstaskmomentmkdirsigtermargvtestsequenceprettyfull-widthbootstrap lessparseweaksetinferencemetadatatoSortedhasES7internalajvmochatakeWebSocketsFunction.prototype.namerdstapetc39boundwordbreakeslintconfigArray.prototype.containscoercibletypedarraysserializationconcurrencyratelimitlastelmgetmkdirptypedES2020Array.prototype.flatMapMapfseventsponyfillgradients css3buffersestreeUint8ClampedArrayprivate datatypeofchaioptimizerSymboldescriptionvpcecmascriptfulllogdatapreserve-symlinksrouteWeakSetqueuewordwrapoffsetnativeshrinkwrappicomatchredactinstallerIteratorprotocol-buffersstyled-componentsprunebrowserslistes5fetchrmloggingfindLastIndexeslintES2022toArraydeep-cloneInt32ArrayObservablesavafile systemstateECMAScript 2019apiurluuidutilObject.fromEntriesnegativeES2015uninstallformlazydeepcopyRxwhatwgmodulesES2019codesargparsepasswordsortmimetypeszerojsdomflagslinewraptoobjectcolumnscallboundcloneresolvesqselectrongroupparserworkspace:*ECMAScript 7validatetrimqswebreduxerror-handlingcache__proto__typeskeysvariables in csses2015proxyreact-testing-librarycallbackequalitycall-boundpyyamlenumerableECMAScript 2015packagesentriesUint8ArrayvalidReactiveExtensionsworkerstatelessArrayBufferextendhookformString.prototype.matchAlleveryemitstoragegatewaypropertyvalueReactiveXintrinsicsomeescapeless compilernamesiteratorauthenticationObject.isJSON-Schemafpscirculardom-testing-libraryarraysnpmES2021objects3toolkittimeeslint-pluginglobtoolsawsdatastructurecloudtrailnoperestmulti-packagenested cssreducerloadbalancingwatchFileconsoleless.jsomitECMAScript 2017toStringTagRxJSschemeindicatores7lesscsscomparermdirglobalsirqroutingl10nstablebyteOffsettesterebsendpointcollection.es6clisuperagentcomputed-typesconsumemruieswfjapanesemkdirsclassnameloadingmimeshamwidthhandlersreal-timecommandreadbyteLengthwatchingfixed-widthinternal slotargumentECMAScript 6util.inspectcharactertypanionscheme-validationqueryArray.prototype.includesajaxlibphonenumberonceECMAScript 2018wrapcallstdlibpositiveprototypeimmutablestylingerrorcall-bindoptimistdirUint16Arrayec2filejQuerybindcss variableArray.prototype.findLastfolderdefinePropertyform-validationidObject.getPrototypeOfamazonmatchAllmatchyamlexpressquote0autoprefixerhardlinksdrop_.extendstatusrequestidentifiersargsyupdescriptorsES6breakECMAScript 2021wafqueueMicrotask$.extendemrwriteESString.prototype.trimtestingslicewaitzodtypedarrayassigntermmiddlewarechromiumstructuredCloneprogressloggerbytefunctionjwttrimRightsharedrouterendermapreduceWebSocketdependency managerexitcore-jsvaluesarktypegetintrinsicworkflowRegExp.prototype.flagscss nestingfluxArrayenvironmenttdd256objObject.valuesbufferdotenvregular expressionvariablesunicode@@toStringTagthrottle[[Prototype]]dataViewtrimEndtelephonesearchmobilerequireutilitiessignalssortedPushnumbercompile lessclassespromisesjavascriptcolorsnsInt16Arraystreams2copyfast-deep-copysesbannerlimitedsymlinkdiffjasmineArray.prototype.findLastIndexdescriptorstyleguideasyncforEachremoveinspectinbluebirdRFC-6455
1.0.0

1 year ago