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

standard-readme-linter-regex

v2.0.6

Published

A dumb regex linter for standard-readme

Downloads

28

Readme

standard-readme-linter-regex

standard-readme compliant

A dumb regex linter for standard-readme

This is a linter that only checks by searching your document for string matches. It does not check for these matches based on what section they're in, which is why it is called a dumb checker.

Table of Contents

Install

npm i -g standard-readme-linter-regex

Usage

standard-readme-linter-regex README.MD -c /Users/richard/src/standard-readme-linter-regex/config.js -r standard-readme-linter-regex -p richardlitt -n RichardLitt -l https://burntfen.com

Options

--project, -p The overarching project
--repo, -r The name of the repository
--config, -c The full path to a config js file to require
--projectName The name of the project
--projectLink The link to the project's main page

Alias

This package is aliased as srlr.

Configuration

You can also use an external configuration file to define extra RegExps to check. For instance:

srlr README.MD -c /Users/richard/src/standard-readme-linter-regex/example-config.js

See the example config file for an example.

Note: These will override existing checks.

Checks

README

Is the filename README?

markdown

Is it a Markdown file, ending in .md?

project

Who is the GitHub organization or profile to whom this repository belongs? What is the project?

Note: This is used in the link checking. It will automatically default to the parent folder's name if no project is provided through the CLI.

repo

Does the title matches the folder name and is it prefixed with #?

titleAtStart

Does the title start the README?

standardReadmeBadge

Is the standard-readme badge present?

install

Is there an install section?

usage

Is there an usage section?

maintainers

Is there an maintainers section?

contribute

Is there a contribute section?

issuesLink

Is there a link to the GitHub issues?

Note: This uses the project setting.

license

Is there a license section?

codeRepo

Is this a repository holding code? Or is there a string that says: This repository is only for documents.?

mitLicense

Is there an MIT license, formatted as [MIT](LICENSE)?

Note: _This does not appear if codeRepo is true.

ccLicense

Is there a CC-BY string?

Note: _This appears if codeRepo is true.

copyright

Is there a © symbol?

copyrightYear

Is the year after the copyright symbol?

copyrightName

Is there a copyright name?

Examples

~/src/RichardLitt/standard-readme-linter-regex $ srlr README.md
README:true
markdown:true
project:RichardLitt
repo:true
titleAtStart:true
standardReadmeBadge:false
install:true
usage:true
maintainers:true
contribute:true
issuesLink:false
license:true
codeRepo:false # Note: This is dumb, and matches the string in the example above.
ccLicense:true # mitLicense disabled for non-code Repos. Same error with matching.
mitLicense:true
copyright:true
copyrightYear:true
copyrightName:true

Maintainers

@RichardLitt.

Contribute

Please do! Check out the issues.

License

MIT © 2016 Richard Littauer