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

dmd-readable

v1.2.4

Published

A plugin for dmd and jsdoc-to-markdown to provide more readable docs

Downloads

2,417

Readme

Dmd Readable

A plugin for dmd and jsdoc-to-markdown to provide more readable docs

npm deps size vulnerabilities license

Installation

npm install dmd-readable

About

Pass the plug-in name to jsdoc2md or dmd:

jsdoc2md --plugin dmd-readable

This plugin (which was used to generate this readme) does a few things:

  • removes global indexes (see below)
  • places descriptions in block-quotes (Use @summary for descriptions without block quotes)
  • adds more whitespace before headings
  • changes the delimiter for multiple types in param tables to a comma
  • adds alias output

The removal of global indexes is now a setting in the template. If you are using your own template and you wish to retain this feature, add the following line to your template:

{{optionSet "global-index-format" "none"~}}

All options for global-index-format are "none", "grouped", "table", "dl". Other options and more info can be found here.

This plugin also provides the following helper functions:

package(key) ⇒ *

Reads info from the package.json file.

See: docs.hbs for an example of how to use this function

| Param | Type | Description | | --- | --- | --- | | key | string | The package property you want returned |

changeCase(to, string) ⇒ string

Implements the library change-case.

See: docs.hbs for an example of how to use this function

| Param | Type | Description | | --- | --- | --- | | to | string | Shorthand or full name for the change-case function. | | string | string | The string to modify |

prefixLines(string, replacer) ⇒ string

Prefixes a string to the beginning of each line in the first string

| Param | Type | Description | | --- | --- | --- | | string | string | The string to modify | | replacer | string | The string to prefix to each line |

findBy(array, key, value) ⇒ array

Finds an object in an array with a matching key: value

| Param | Type | Description | | --- | --- | --- | | array | array | The array to search | | key | string | The key to compare | | value | string | The value to find |

replace(string, pattern, newString) ⇒ string

Calls string.replace

| Param | Type | Description | | --- | --- | --- | | string | string | The string to modify | | pattern | string | The first arg for string.replace | | newString | string | The second arg for string.replace |

isNew(string) ⇒ boolean

Determines if the provided string is truthy and is different than the string provided the previous time this function was called

| Param | Type | | --- | --- | | string | string |