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

@a-2-c-2-anpm/excepturi-omnis-delectus

v1.0.0

Published

[![NPM](https://img.shields.io/npm/v/@a-2-c-2-anpm/excepturi-omnis-delectus.svg?label=npm)](https://www.npmjs.com/package/@a-2-c-2-anpm/excepturi-omnis-delectus) [![License](https://img.shields.io/badge/license-MIT-yellowgreen.svg?style=flat)](https://git

Downloads

5

Maintainers

tranduc345zztranduc345zz

Keywords

trimrm -frreuselibphonenumbernamecompilercircularpackage.jsononcereducernested csstoArrayRxincludeswatcherfastifystringifierlazycolorspolyfillmixinslanguageUint32ArraybcryptflatMapa11yrequeststringifyequalformtoobjectemitarraybufferbundlernamesECMAScript 3autoprefixerpackage managerprotohashdirectorytypescriptvpcfunctionconcurrencyprettyurlestreeasyncfigletstreamsgetintrinsicruntimees2016Object.valuesthrottlelogclassnamecolumnenumerableimportexportdebuggerpromisesUint16Arrayauthnativecss lesspicomatchless mixinsless compilerprivatefind-upregular expressionlinewrapReflect.getPrototypeOfsqshas-ownInt16ArraylengthtypeddeleteCSSStyleDeclarationpersistenttoStringTagjsonpathStreamsqueryhotworkerisECMAScript 2016toolsPushcryptoconsumeRegExp#flagsbootstrap lesscss-in-jsenvironmentexeccommanderinputiterateMicrosofttoSortedtakeloadbalancingshrinkwrapbufferinternal slotroute53readdatastructurepackagesredirectwritereact-hook-formflagsObject.keysthroateslintkarmaSymbol.toStringTagdirtrimLeftes5awsdefinejapanesetapapolloRegExp.prototype.flagsdependency managerparsefpsfastcopyES2022flagwidthrmlooktesterenderassertoutputmrupipebrowserArrayBuffer#slicerfc4122commandliveindicatorcalles6trimEndownremovefsdataViewmimetypesbannerformatting-0matchesboundflattenWeakSetObject.assigncacheyamlextravariables in cssoptimistkeysfilterless cssObject.entriesHyBideepshimsyntaxfileassigngradients csstoolkitequalitycontainsinferencereact-testing-librarystyled-componentshttpsform-validationunicodeargsreduxES2020querystringresolvepropUint8ClampedArrayfoldermoduleshastslibchromehardlinksObservablessearchURLSearchParamspostcss-plugincommand-linehigher-orderperformanceArray.prototype.containssafepathdotenvspinnersmochastarterregexmakeBigUint64ArrayarraysYAMLbrowserslistECMAScript 5streamdiffmapbusyomitautoscalingemrfullwidthcodesUint8ArraydayjsdescriptorponyfillupcoerciblechaiwordwrapreadableslotlistenerscloudtrailObject.isswftrimRightstableprototypeglacierECMAScript 2018Array.prototype.flatMapmkdirES7getOwnPropertyDescriptormatchjasmineyupwrapshebangwritablefullcallboundtypeofidexpressionframeworkWebSocketObject.fromEntriesl10nuuidString.prototype.trimregular expressionsvaluecopy__proto__objectcallbindimportspinnerformatArraySetbyteLengthinstallervariablesjavascriptfindLastsyntaxerrorxtermjsxpruneschemacolorec2keyhasOwnbufferskinesiscryptnumberextendbrowserlistinstallstylesoffsetqsjsdomasteslintpluginhookformchinesemove$.extendECMAScript 2020preserve-symlinksi18ncssdescriptionpromisemergemimeapiiterationfastsharedCSSpushstringtypesObject.definePropertystatelesswhatwgstyleguidetextmodulecjkhttpdynamodbrmdirsomepackageReactiveXgetPrototypeOfsetImmediatereadablestreameslint-pluginpositiveserializervalidstateTypeScriptimmerwalkdeepclonemetadatalook-upreplayasciiviewfunctionssespostcsswebconcatsharedarraybuffercliregularstructuredClonefetchdropwalkingparentbindes2018ES3telephonetouchtestingextensionarraywordbreakRxJSconfigurablelocationwafes-shimsreactdeep-copylessfastcloneduplexnegativeemojiES5negative zerospecsimpledbutilitytswatchFilesuperstructzerorouteweaksethelperssameValueZerowatchingieawesomesauceredactdomiamsetconcatMapIteratorpnpm9classnamesjoiaccessibilityinjsgetterregexpgetoptartmulti-packageebsArray.prototype.findLastIndexes2017validationnodejsES2017eventsassertiongetECMAScript 2022stylingaccessorjQueryInt32ArraycurlquoteforEachsymbolsortes7byteespreetaskprivate dataBigInt64Arrayredux-toolkitcolumnsECMAScript 2021flatJSONArray.prototype.includesfast-deep-cloneES2023charactercall-boundoptimizerclass-validatorwarningsortedutilrm -rfObjectfromweakmapopengraphqlreducechromiumArray.prototype.findLastfindupavaObservablewhichendpointjsdiffnpmsymlinkutil.inspectsuperagentelectronpropertiestrimStartESArray.prototype.flatWebSocketsprefix@@toStringTagmime-dbworkflowlinkcloudformationMaptypeerrortypematchAll

Readme

@a-2-c-2-anpm/excepturi-omnis-delectus

NPM License Build Status API Docs

This project aims to preserve and expand upon the SourceCode#getJSDocComment functionality of the deprecated ESLint method.

It also exports a number of functions currently for working with JSDoc:

API

parseComment

For parsing comment-parser in a JSDoc-specific manner. Might wish to have tags with or without tags, etc. derived from a split off JSON file.

commentParserToESTree

Converts comment-parser AST to ESTree/ESLint/Babel friendly AST. See the "ESLint AST..." section below.

estreeToString

Stringifies. In addition to the node argument, it accepts an optional second options object with a single preferRawType key. If you don't need to modify JSDoc type AST, you might wish to set this to true to get the benefits of preserving the raw form, but for AST-based stringification of JSDoc types, keep it false (the default).

jsdocVisitorKeys

The VisitorKeys for JsdocBlock, JsdocDescriptionLine, and JsdocTag. More likely to be subject to change or dropped in favor of another type parser.

jsdocTypeVisitorKeys

Just a re-export of VisitorKeys from jsdoc-type-pratt-parser.

getDefaultTagStructureForMode

Provides info on JSDoc tags:

  • nameContents ('namepath-referencing'|'namepath-defining'| 'dual-namepath-referencing'|false) - Whether and how a name is allowed following any type. Tags without a proper name (value false) may still have a description (which can appear like a name); descriptionAllowed in such cases would be true. The presence of a truthy nameContents value is therefore only intended to signify whether separate parsing should occur for a name vs. a description, and what its nature should be.
  • nameRequired (boolean) - Whether a name must be present following any type.
  • descriptionAllowed (boolean) - Whether a description (following any name) is allowed.
  • typeAllowed (boolean) - Whether the tag accepts a curly bracketed portion. Even without a type, a tag may still have a name and/or description.
  • typeRequired (boolean) - Whether a curly bracketed type must be present.
  • typeOrNameRequired (boolean) - Whether either a curly bracketed type is required or a name, but not necessarily both.

Miscellaneous

Also currently exports these utilities:

  • getTokenizers - Used with parseComment (its main core).
  • hasSeeWithLink - A utility to detect if a tag is @see and has a @link.
  • commentHandler - Used by eslint-plugin-jsdoc.
  • commentParserToESTree- Converts comment-parser AST to ESTree/ESLint/Babel friendly AST.
  • jsdocVisitorKeys - The VisitorKeys for JSDocBlock, JSDocDescriptionLine, and JSDocTag.
  • jsdocTypeVisitorKeys - VisitorKeys for jsdoc-type-pratt-parser.
  • defaultNoTypes = The tags which allow no types by default: default, defaultvalue, description, example, file, fileoverview, license, overview, see, summary
  • defaultNoNames - The tags which allow no names by default: access, author, default, defaultvalue, description, example, exception, file, fileoverview, kind, license, overview, return, returns, since, summary, throws, version, variation

ESLint AST produced for comment-parser nodes (JsdocBlock, JsdocTag, and JsdocDescriptionLine)

Note: Although not added in this package, @es-joy/jsdoc-eslint-parser adds a jsdoc property to other ES nodes (using this project's getJSDocComment to determine the specific comment-block that will be attached as AST).

JsdocBlock

Has the following visitable properties:

  1. descriptionLines (an array of JsdocDescriptionLine for multiline descriptions).
  2. tags (an array of JsdocTag; see below)
  3. inlineTags (an array of JsdocInlineTag; see below)

Has the following custom non-visitable property:

  1. delimiterLineBreak - A string containing any line break after delimiter.
  2. lastDescriptionLine - A number
  3. endLine - A number representing the line number with end/terminal
  4. descriptionStartLine - A 0+ number indicating the line where any description begins
  5. descriptionEndLine - A 0+ number indicating the line where the description ends
  6. hasPreterminalDescription - Set to 0 or 1. On if has a block description on the same line as the terminal */.
  7. hasPreterminalTagDescription - Set to 0 or 1. On if has a tag description on the same line as the terminal */.
  8. preterminalLineBreak - A string containing any line break before terminal.

May also have the following non-visitable properties from comment-parser:

  1. description - Same as descriptionLines but as a string with newlines.
  2. delimiter
  3. postDelimiter
  4. lineEnd
  5. initial (from start)
  6. terminal (from end)

JsdocTag

Has the following visitable properties:

  1. parsedType (the jsdoc-type-pratt-parser AST representation of the tag's type (see the jsdoc-type-pratt-parser section below)).
  2. typeLines (an array of JsdocTypeLine for multiline type strings)
  3. descriptionLines (an array of JsdocDescriptionLine for multiline descriptions)
  4. inlineTags (an array of JsdocInlineTag)

May also have the following non-visitable properties from comment-parser (note that all are included from comment-parser except end as that is only for JSDoc blocks and note that type is renamed to rawType and start to initial):

  1. description - Same as descriptionLines but as a string with newlines.
  2. rawType - comment-parser has this named as type, but because of a conflict with ESTree using type for Node type, we renamed it to rawType. It is otherwise the same as in comment-parser, i.e., a string with newlines, though with the initial { and final } stripped out. See typeLines for the array version of this property.
  3. initial - Renamed from start to avoid potential conflicts with Acorn-style parser processing tools
  4. delimiter
  5. postDelimiter
  6. tag (this does differ from comment-parser now in terms of our stripping the initial @)
  7. postTag
  8. name
  9. postName
  10. postType

JsdocDescriptionLine

No visitable properties.

May also have the following non-visitable properties from comment-parser:

  1. delimiter
  2. postDelimiter
  3. initial (from start)
  4. description

JsdocTypeLine

No visitable properties.

May also have the following non-visitable properties from comment-parser:

  1. delimiter
  2. postDelimiter
  3. initial (from start)
  4. rawType - Renamed from comment-parser to avoid a conflict. See explanation under JsdocTag

JsdocInlineTag

No visitable properties.

Has the following non-visitable properties:

  1. format: 'pipe' | 'plain' | 'prefix' | 'space'. These follow the styles of link or tutorial.
    1. pipe: {@link namepathOrURL|link text}
    2. plain: {@link namepathOrURL}
    3. prefix: [link text]{@link namepathOrURL}
    4. space: {@link namepathOrURL link text (after the first space)}
  2. namepathOrURL: string
  3. tag: string. The standard allows tutorial or link
  4. text: string

ESLint AST produced for jsdoc-type-pratt-parser

The AST, including type, remains as is from jsdoc-type-pratt-parser.

The type will always begin with a JsdocType prefix added, along with a camel-cased type name, e.g., JsdocTypeUnion.

The jsdoc-type-pratt-parser visitor keys are also preserved without change.

Installation

npm i @a-2-c-2-anpm/excepturi-omnis-delectus

Changelog

The changelog can be found on the CHANGES.md.

Authors and license

Brett Zamir and contributors.

MIT License, see the included LICENSE-MIT.txt file.

To-dos

  1. Get complete code coverage
  2. Given that esquery expects a right property to search for > (the child selector), we should perhaps insist, for example, that params are the child property for JsdocBlock or such. Where :has() is currently needed, one could thus instead just use >.
  3. Might add trailing for JsdocBlock to know whether it is followed by a line break or what not; comment-parser does not provide, however
  4. Fix and properly utilize indent argument (challenging for eslint-plugin-jsdoc but needed for jsdoc-eslint-parser stringifiers to be more faithful); should also then use the proposed trailing as well