npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@crabas0npm2/dignissimos-ratione-et

v1.0.0

Published

[![dependency status][5]][6] [![dev dependency status][7]][8] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

Downloads

21

Maintainers

thanhl4861thanhl4861

Keywords

Array.prototype.filterchildfigletdeterministicconcatMapsequenceFloat32ArrayshimtypedarraycommanderStreamsdircloudtrailECMAScript 2020watchutilitiesshrinkwrapredactes8fast-deep-clonecollectionObject.valuesredux-toolkittostringtagArray.prototype.includesargumentwatchingdateECMAScript 3MapjshinturlssortsymbolObject.definePropertystreamSetgenericspropreplayajaxURLMicrosoftopenerviewnumberwatchFiledeep-copycircularlogminimalemojicreatefunctionalsnsiamfullwidthpositivenode$.extendECMAScript 2015typesafemulti-packagegroupsimpledbnamekinesisspinnerECMAScript 7equala11ycompareregular expressionsdefinePropertyresolvees2016es2015utilmiddlewarerequireerrorcss lesstypesendermimeequalitylesscallboundintrinsiclanguagepackage managerastAsyncIteratormimetypescall-binddiffcommand-lineobjdescriptor-0less csslookglacierUint16Arraycloudsearches-shimssignaltrimLeftjavascripttrimweakmaptexttoolkitbatchregexpString.prototype.trimdotenvglobalfast-deep-copyStreamfetchcloudformationBigInt64ArrayformatJSONendpointObject.assignrequestinternalrateawaitvariables in cssES2018ES6elasticacheStyleSheetinputiterationansiWeakMappasswordelbpostcss-pluginimportbcryptreactguidES2020Uint32Arrayvarsttycalldynamodbqsdefaultuninstalldom-testing-libraryomitmacosstatusstartfile systemcharacterweaksetlockfilelistenersstringifierfast-copypackagesstylesheetajvconnectfpscsses2017es5typedeepfastcompile lesselmhttpecmascriptflatMapWebSocketcensordebuggerthrottlebrowserrfc4122bufferargparse0Object.keysstdlibECMAScript 2019chinesedescriptorsupgroupByirqsearchjsonarrayrestfulFloat64ArrayflagpatchIteratorreadablepipecoerciblefunctionschaiReactiveExtensionsObjectsesclassnamesiterateec2getoptartfind-uptestinginstallerES5Symbol.toStringTagES3awsdeepcopycontainsimportexportArray.prototype.containstc39indicatorbundlerserialize256stableArray.prototype.findLastIndexreadablestreamlivebootstrap cssschemajasminepolyfillspawnjsxRegExp.prototype.flagsefficientsignalsreduxwordbreaknatives3debugTypeBoxrm -rfInt32ArrayjQueryreducermergecorecacheeverydropescapetyped arraywindowsstateagenttypeerrorsomeappautoscalingcjkexitremovemapextrareducedataViewbyteOffsetBigUint64ArrayvalidatebyteLengthString.prototype.matchAllfindoptionnopeextensionworkerdatastructureYAMLeventsoptimisthas@@toStringTag[[Prototype]]es-shim APIpathclassnameserializationbytefastcopywafflagsbundlingcode pointslimitless.jsspeedArrayBuffer.prototype.slicelogginggetter.envslicerapiddayjscopywgetcallbackpostcssES2023less compilerexecutableseteventDispatcherincludesenvironmentsparsesidedependency managersyntaxerrornegative zerosymbolsargumentswalkUnderscoreregular expressionfull-widthprototypetoolscolourgetintrinsictypedObject.entriestouchlaunchflatreact-hook-formlinkprefixassertsigintopenwebpackage.jsonformattingformfoldertoobjecttesterutil.inspectreal-timestructuredCloneprogressSymboltypescriptdeletetimerangeerrorES2015preserve-symlinksoffsettaprecursivefilelinewrapcommandArray.prototype.flatMapyamlfilterpropertyECMAScript 2018iecollection.es6Function.prototype.namedeep-clonedirectoryprotoyupdomsetPrototypeOfworkspace:*superstructES2021expressionfschromeArrayprotobufmakelook-upRxJSschemescheme-validationhooksfunctionbootstrap lesserror-handlingbddstyleguideregulareslint-pluginwarningqueuesettingsurlquoteWeakSetglobstylingcloudwatchTypeScriptconcurrencyreact-testing-libraryRegExp#flagses-abstractshebangstreamslruenvwhichtrimRightlesscssjsdomsinatramatchAllPromisevalueswritestyleeventEmittersafeawesomesauceTypedArrayhashproxyprocessentriesJSON-SchemaconfigReflect.getPrototypeOfflattenpredictableenumerabletestexpresscheckduplexjestArray.prototype.flatconsolegetOwnPropertyDescriptordefineinferencesigtermrestspecoperating-systempackagefullfindupprotocol-bufferssyntaxpushparserrmtslibjsqueueMicrotaskhasOwnless mixinsbrowserlistfastcloneemitperformantrmdirmkdirelectronparentsslotdescriptioneast-asian-widthperformancerouterdata

Readme

@crabas0npm2/dignissimos-ratione-et Version Badge

dependency status dev dependency status License Downloads

npm badge

Robustly get the length of a Typed Array, or false if it is not a Typed Array. Works cross-realm, in every engine, even if the length property is overridden.

Example

var typedArrayLength = require('@crabas0npm2/dignissimos-ratione-et');
var assert = require('assert');

assert.equal(false, typedArrayLength(undefined));
assert.equal(false, typedArrayLength(null));
assert.equal(false, typedArrayLength(false));
assert.equal(false, typedArrayLength(true));
assert.equal(false, typedArrayLength([]));
assert.equal(false, typedArrayLength({}));
assert.equal(false, typedArrayLength(/a/g));
assert.equal(false, typedArrayLength(new RegExp('a', 'g')));
assert.equal(false, typedArrayLength(new Date()));
assert.equal(false, typedArrayLength(42));
assert.equal(false, typedArrayLength(NaN));
assert.equal(false, typedArrayLength(Infinity));
assert.equal(false, typedArrayLength(new Number(42)));
assert.equal(false, typedArrayLength('foo'));
assert.equal(false, typedArrayLength(Object('foo')));
assert.equal(false, typedArrayLength(function () {}));
assert.equal(false, typedArrayLength(function* () {}));
assert.equal(false, typedArrayLength(x => x * x));
assert.equal(false, typedArrayLength([]));

assert.equal(1, typedArrayLength(new Int8Array(1)));
assert.equal(2, typedArrayLength(new Uint8Array(2)));
assert.equal(3, typedArrayLength(new Uint8ClampedArray(3)));
assert.equal(4, typedArrayLength(new Int16Array(4)));
assert.equal(5, typedArrayLength(new Uint16Array(5)));
assert.equal(6, typedArrayLength(new Int32Array(6)));
assert.equal(7, typedArrayLength(new Uint32Array(7)));
assert.equal(8, typedArrayLength(new Float32Array(8)));
assert.equal(9, typedArrayLength(new Float64Array(9)));
assert.equal(10, typedArrayLength(new BigInt64Array(10)));
assert.equal(11, typedArrayLength(new BigUint64Array(11)));

Tests

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