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 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-pajsdoc

v1.0.26

Published

This project parses comments with JSDoc markup language in source code files

Downloads

15

Readme

README (node-pajsdoc)

Installation

npm install node-pajsdoc

Quick Start

const PaJSDoc = require('node-pajsdoc');
let pajsdoc = null;
let json_obj = null;

pajsdoc = new PaJSDoc('test/sample/dirmodule.c');
json_obj = pajsdoc.searchByFunction('FullPath');
if (item_node && item_node.function) {
    console.log(item_node.function);
}

pajsdoc = new PaJSDoc("/**" +
                      " * @function    FullPath" +
                      " */");
json_obj = jsdoc.searchByTagTypeName('function');
if (item_node && item_node.function) {
    console.log(item_node.function);
}

Syntax

@TAG    {TYPE}  `NAME`  DESC

| Symbol | Item | Explaination | |--------|------|--------------| | @ | TAG | | | {} | TYPE | | | `` | NAME | | | Text | DESC | |

Test - Unit Test

./node_modules/mocha/bin/mocha test

Examples

Example 1

/**
* @module      {Composite} `DIR_MODULE` Dir module
* @member      {DIR_PUBLIC_FUNC_DECLARATION}
* @namespace   RtLib.Dir
* @author      dougpuob <[email protected]>
*/
struct _DIR_MODULE {
    WRAP_STATIC_PUBLIC_DATA( DIR_PUBLIC_DATA_DECLARATION() );
    WRAP_STATIC_PUBLIC_FUNC( DIR_PUBLIC_FUNC_DECLARATION() );
};

Example 2

/**
* @module      {Parts} `DIR_MODULE`  Dir library
* @namespace   RtLib.Dir
* @author      dougpuob <[email protected]>
*/

Example 3

/**
* @function    `_RtlDir_ReadDir`    This is a descrption.
* @summary     This is a summary text
* @description This is a summary text
* @parameter   {char*}        `szPath`      This is a descrption.
* @parameter   {bool}         `bRecursive`  This is a descrption.
* @parameter   {FILE_ENTRY*}  `pFileEntry`  This is a descrption.
* @parameter   {RECORD_DATA*} `pRecordData` This is a descrption.
* @return      {FILE_ENTRY*}
* @author      dougpuob <[email protected]>
*/
FILE_ENTRY*
_RtlDir_ReadDir(
    IN OUT char*        const szPath,
    IN     bool         const bRecursive,
    IN     FILE_ENTRY*  const pFileEntry,
    IN OUT RECORD_DATA* const pRecordData
)

Example 4

/**
* @@class      {} ``
* @function    `_RtlDir_ReadDir`    This is a descrption.
* @summary     This is a summary text
* @description This is a summary text
* @parameter   {char*}        `szPath`      This is a descrption.
* @parameter   {bool}         `bRecursive`  This is a descrption.
* @parameter   {FILE_ENTRY*}  `pFileEntry`  This is a descrption.
* @parameter   {RECORD_DATA*} `pRecordData` This is a descrption.
* @return      {FILE_ENTRY*}
* @author      dougpuob <[email protected]>
*/

| TAG NAME | TAG DESCRIPTION | |--------------------------|----------------------------------------------------------------------------------------| | @class @constructor | Marks a function as a constructor | | @classdesc | ?? | | @module | Document a JavaScript module. | | @function @method | Describe a function or method. | | @summary | A shorter version of the full description. | | @desc @description | Describe a symbol. | | @deprecated | Marks a method as deprecated | | @throws @exception | Documents an exception thrown by a method | | @exports | Identifies a member that is exported by the module | | @param @parameter | Documents a method parameter; a datatype indicator can be added between curly | | @private | Signifies that a member is private | | @return @returns | Documents a return value | | @see | Documents an association to another object | | @todo | Documents something that is missing/open | | @this | Specifies the type of the object to which the keyword "this" refers within a function. | | @version | Provides the version number of a library | | @virtual @abstract | This member must be implemented (or overridden) by the inheritor. | | @deprecated | Document that this is no longer the preferred way. | | @example | Provide an example of how to use a documented item. | | @member | ??? | | @memberof | This symbol belongs to a parent symbol. | | @namespace | Document a namespace object. | | @see | Refer to some other documentation for more information. | | @static | Document a static member. | | @version | Documents the version number of an item. | | @author | Developer's name |

Test

$ mocha

PaJSDoc class
    - Constructor() - single file
      √ should return true
    - Constructor() - Two files by array
      √ should return true
    - SearchByTagName()
      √ should return true
    - SearchByFunction()
      √ should return true
    - SearchByModule()
      √ should return true
    - SearchFirst() - @parameter {} {TYPE} `NAME` DESCRIPTION
      √ should return true
    - SearchFirst() - @parameter `NAME` DESCRIPTION
      √ should return true
    - SearchFirst() - @function DESCRIPTION
      √ should return true
    - SearchFirst() - @function `NAME`
      √ should return true
    - SearchFirst() - @function {TYPE}
      √ should return true
    - SearchFirst() - @description DESCRIPTION
      √ should return true
    - SearchFirst() - @summary DESCRIPTION
      √ should return true
    - SearchFirst() - @return {TYPE}
      √ should return true
    - SearchFirst() - @return {TYPE} DESCRIPTION
      √ should return true
    - SearchFirst() - @author DESCRIPTION
      √ should return true

  15 passing (74ms)

Resource

  1. node-pajsdoc https://github.com/dougpuob/node-pajsdoc.git

License

MIT