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

@teamteanpm2024/quam-tempora-quas

v1.0.5

Published

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

Downloads

12

Maintainers

shivamkalsi2024shivamkalsi2024

Keywords

dominvariantcollection.es6Object.fromEntrieseslintconsoleutilityclassnamenegativeJSONwatchingwafcreatecloudwatchframeworkwgetcloudtrailfastcloneaccessorsequence@@toStringTagtoSortedreact animationmulti-packagefilterconfigurableprotocss nestingES2017deepcopyUint32Arraycharacterses5writestyleguideIteratorUint16ArrayString.prototype.matchAllkeynativemkdirpjasminedatemoveurlless.jstypesenvBigUint64ArrayasyncCSSStyleDeclaration__proto__asciiutilitiesrobustObservablefastcopyreadableconcatMapmimemacosinternal slotprotocol-buffersdotenverror-handlingbrowserslisttyped arrayES2020redactphonegenericstacitcontainshandlersthroatgetPrototypeOfttybcryptdeepReactiveXArray.prototype.findLastIndeximmutablenested cssArrayBuffer#slicebufferECMAScript 2015json-schemamapreduceauthcsskinesisqueueequalitycommandreuseESnextspinnersgetOwnPropertyDescriptorcommand-linehasOwnqueueMicrotaskkeyshttpobjencryptionchromiumthrottleES2019libphonenumbersymbolsmergeelectronmatchesauthenticationquerycallAsyncIteratorconcatkarmamkdirmrustylingreact poseisfullECMAScript 2019streams2parentsassertsnegative zero256argsregexpdatastructurefpspersistentwordbreakECMAScript 2016readserializees-abstracttoolsArray.prototype.filternpmlanguagefastsqslimitbindpropertykoreanchromejQueryless mixinsquerystringArray.prototype.containsdom-testing-libraryconfigoptionbootstrap csssidesettingsbyteLengthArray.prototype.flatawesomesaucefantasy-landWebSocketsreduxlrupnpm9toobjectserializationshebangArray3drgbpolyfillsnsxtermoffsetpackage managernodeObject.keysES2016sameValueZeromake dirsortparsecss lesscall-bindcryptovalidatorRegExp#flagsweaksettypedarraysfscjkargumentworkerObject.assignstringtoStringTagforEachinstallglobautoscalingswfrm -freast-asian-widthsharedimmerreducerObject.getPrototypeOfpruneframerHyBisafeownloggerfunctionaljsonschematrimLeftpipeviewgesturestddoptimizerstringifierprivate datagradients cssreduceextensionarktypesuperstructentriesmkdirspopmotion$.extendrapidwatchFilecolorspecastmobilethreetelephoneECMAScript 3Array.prototype.includestoolkituninstallupjsonpathes8artargvlinkInt16Arrayendpointa11ypropertiesterminalObservablessymlinkdataviewcensorinputarrayresolveratearraysquotewarningaccessibilityduplexstreamenumerableUint8ClampedArraynodejssharedarraybuffernumberflagjoiinternalgetterwrapmime-dbmonorepotypedarrayUint8ArrayES7YAMLpositiveanimationfast-deep-copyTypeScriptfastifyprototypecolumnargparsedependency managerlinttc39JSON-SchemaobjectlockfilepropwatchconsumedeterministicfindLastmapformfseventshookssyntaxerrorscheme-validationcode pointsUnderscorecharacterjsxagentboundsanitizebreakes2017minimaltraverseshrinkwrapcorsflattenregularpicomatchArrayBuffersetImmediateeventEmitterautoprefixerruntimeebscopypuredeep-copyfast-clonepromisesdefinesesserializervisualmodulesdiffesspringjestcheckdataViewsymlinksharmonyfunctionsdatawaapijapanesetestercollectionpackagechannelsomermefficientprotobuflistenerseslint-pluginglacierdescriptorcallbindcallboundless compilermatchtaskpathfind-upWeakSetform-validationES2023mixinsBigInt64ArrayInt8ArrayMicrosoftutilpreprocessorECMAScript 2018interruptswordwrappyyamlrandombrowserpluginbluebirdlessiamRFC-6455testingvariablesrequestURLoperating-systemratelimitlinuxes-shim APIchinesecss variablewebcompile lessperformancecallback[[Prototype]]idleeverytapeexit-codedebuggerdeepclonefile systemES3react-hooksassertFloat64Arraydirectorydynamodbworkspace:*findupObject.valuescall-boundcloudsearchinferencenopesigtermArray.prototype.findLastsignalsamazoncore-jsclonepasswordMapsymbolwidthdeep-cloneparsingmomenttranspilerTypeBoxtrimStartcolorsl10narraybufferremoveString.prototype.trimflatemrfindLastIndexdragES2022statusReactiveExtensionses7installergroupinapitslibajaxcircularmetadatatoArraycolourextendsetPrototypeOfprogressFunction.prototype.namefast-deep-clonelimitedio-tspreserve-symlinkscommanderFloat32Arrayansimiddlewareuser-streamseslintplugintakeweakmapstringifybuffersrfc4122omitvariables in csspromiseramdalastpushformsnamesfull-widthhasOwnPropertyES2018textbannerqssortedequalexitECMAScript 7optimistshimajvObject.definePropertybrowserlistStreamsloadingbatchconnectregular expressionsECMAScript 2023inspectbootstrap lessslicedependencieshasWeakMapless csssettypescript0compareutil.inspectreact-testing-libraryloggingpackage.jsonclass-validatorspeedstructuredClonepackagescloudformationwindowsstylestreamsuuideventsjwtPushawaitvpcbundlertypeerrorbalancedregular expressionrecursiveestreecoerciblegradients css3RxJSescapetestemitredux-toolkitxsscurriedstarterincludesbundlingloadbalancingtapchaiimportexportsuperagentposelengthES8sham-0valuegetpoint-freegetoptdropObjectfast-copyReflect.getPrototypeOfschemeexecelbdescriptionrequireworkflowtypedcliCSSjsdomdebugiterationclassesroute53constvartimepostcsscolumnsbusymimetypescodesECMAScript 2021lookArrayBuffer.prototype.sliceperformantlook-upsigintreact-hook-formstoragegatewaysimpledbjsdiffrmdirSetproxybeanstalkts.envWebSocketponyfillbabel-coreSymbolfunctiontrimRightisConcatSpreadableeslintconfigshellcloudfrontreadablestreamArray.prototype.flattenrdsTypedArrayArray.prototype.flatMapslotES2015helpersenderavalesscssECMAScript 2022es2015babelfpstylesheetcomputed-typeswhichES2021nameiteratorsettervalidategdpres-shimsparserflatMaptypesafefetchstylesawsstablehttpslazycss-in-jswalkconcurrency

Readme

@teamteanpm2024/quam-tempora-quas Version Badge

github actions coverage License Downloads

npm badge

Set a function’s name.

Arguments:

  • fn: the function
  • name: the new name
  • loose: Optional. If true, and the name fails to be set, do not throw. Default false.

Returns fn.

Usage

var setFunctionName = require('@teamteanpm2024/quam-tempora-quas');
var assert = require('assert');

const obj = {
    concise() {},
    arrow: () => {},
    named: function named() {},
    anon: function () {},
};
assert.equal(obj.concise.name, 'concise');
assert.equal(obj.arrow.name, 'arrow');
assert.equal(obj.named.name, 'named');
assert.equal(obj.anon.name, 'anon');

assert.equal(setFunctionName(obj.concise, 'brief'), obj.concise);
assert.equal(setFunctionName(obj.arrow, 'pointy'), obj.arrow);
assert.equal(setFunctionName(obj.named, ''), obj.named);
assert.equal(setFunctionName(obj.anon, 'anonymous'), obj.anon);

assert.equal(obj.concise.name, 'brief');
assert.equal(obj.arrow.name, 'pointy');
assert.equal(obj.named.name, '');
assert.equal(obj.anon.name, 'anonymous');