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

textrun-repo

v0.2.0

Published

Text-Runner actions for verifying the content of the current repository

Downloads

7

Readme

Text-Runner Actions for verifying the content of the current repository

This package provides Text-Runner actions for verifying documentation containing the content of source code files from the repository.

installation

To use these actions, add this package as a development dependency by running npm i -D textrun-repo or yarn i -D textrun-repo.

repo/existing-file

Sometimes you want to mention the name of a file from your application's source code in the documentation. The source/existing-file action verifies this. As an example, consider a codebase contains a file config.yml with content foo: bar. The documentation for this codebase might want to mention this configuration file:

The file <b type="repo/existing-file">config.yml</b> defines configuration
values.

The filename of the source code file is relative to the Markdown file describing it.

repo/existing-file-content

Sometimes you want to just display a file from your application's source code in the documentation. The source/existing-file-content action verifies such documentation. As an example, consider a codebase contains a file config.yml with content foo: bar. The documentation for this codebase might want to mention this configuration file:

<a type="repo/existing-file-content">

The **config.yml** file defines configuration values. The current settings are:

```
foo: bar
```

</a>

This action assumes that the documentation contains the filename in bold or italic and the content as a single or triple fenced code block. The filename of the source code file is relative to the Markdown file describing it. You can also provide a directory in which your file is located via a link in the active region. Let's say you have a file foo/bar/hello.txt in your code base with the content hello world!. You can display its content in your documentation via this active region:

<a type="repo/existing-file-content">

The **hello.txt** file in the [bar folder](foo/bar) contains this section:

`hello world!`

</a>

repo/executable

The repo/executable action verifies that an executable that the documentation mentions exists and is indeed executable. It doesn't run the executable. As an example, consider a codebase that contains an executable scripts/setup. The semantic documentation for this codebase might look like this:

Run the <b type="repo/executable">scripts/setup</b> binary to set up your
environment.