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

remark-preset-stoicism

v0.0.2

Published

Markdown processor for the Stoicism Compendium

Downloads

8

Readme

remark-preset-stoicism

test

Markdown processor for the Stoicism Compendium.

This is a remark preset defining a number of warnings.

Each of these plugins is configured to emit a warning for the issue mentioned:

| Plugin | Issue | | --------------------------------------------------- | ------------------------------------------------------- | | remark-lint-blockquote-indentation | Block quote indentation spaces ≠ 2 | | remark-lint-checkbox-character-style | Check box not x for checked, for unchecked | | remark-lint-code-block-style | Code block not fenced | | remark-lint-definition-case | Definitions not lowercase | | remark-lint-definition-spacing | Consecutive spaces in definitions | | remark-lint-emphasis-marker | Emphasis marker not _ | | remark-lint-fenced-code-flag | Fenced code flag not provided | | remark-lint-fenced-code-marker | Fenced code marker not ``` | | remark-lint-file-extension | File name without extension .md | | remark-lint-final-definition | Definitions not at end of file | | remark-lint-final-newline | Missing \n at end of file | | remark-lint-hard-break-spaces | Spaces for a hard line break > 2 | | remark-lint-heading-increment | Heading level increments > 1 | | remark-lint-heading-style | Heading not ATX | | remark-lint-linebreak-style | End-of-line character not \n (as in Unix) | | remark-lint-link-title-style | Link title not using " | | remark-lint-list-item-bullet-indent | Indented list item bullets | | remark-lint-list-item-content-indent | Mixed indentation in list item content | | remark-lint-list-item-indent | Spaces after list bullet ≠ 1 | | remark-lint-maximum-line-length | Lines longer than 80 characters | | remark-lint-no-auto-link-without-protocol | Autolinks without protocol | | remark-lint-no-blockquote-without-marker | Blank lines without > in block quote | | remark-lint-no-consecutive-blank-lines | Consecutive blank lines | | remark-lint-no-duplicate-defined-urls | Duplicate definition URLs | | remark-lint-no-duplicate-definitions | Duplicate definitions | | remark-lint-no-duplicate-headings | Duplicate headings | | remark-lint-no-empty-url | Empty URLs | | remark-lint-no-file-name-articles | File name starts with an article | | remark-lint-no-file-name-consecutive-dashes | File name contains consecutive dashes | | remark-lint-no-file-name-irregular-characters | File name contains “irregular” characters | | remark-lint-no-file-name-mixed-case | File name uses mixed uppercase and lowercase characters | | remark-lint-no-file-name-outer-dashes | File name contains initial or final dashes | | remark-lint-no-heading-content-indent | Indented heading text | | remark-lint-no-inline-padding | Padded content for emphasis, strong, etc. | | remark-lint-no-literal-urls | Literal URLs | | remark-lint-no-multiple-toplevel-headings | Level 1 headings (#) > 1 | | remark-lint-no-reference-like-url | References match URLs | | remark-lint-no-shell-dollars | Shell code starts with $ | | remark-lint-no-shortcut-reference-image | Shortcut reference images | | remark-lint-no-shortcut-reference-link | Shortcut reference links | | remark-lint-no-table-indentation | Indented tables | | remark-lint-no-tabs | Tabs used for indentation | | remark-lint-no-undefined-references | References to undefined definitions | | remark-lint-no-unused-definitions | Unused definitions | | remark-lint-ordered-list-marker-style | Ordered list marker not using . | | remark-lint-ordered-list-marker-value | Ordered lists with non-incrementing marker values | | remark-lint-rule-style | Rule style not --- | | remark-lint-strong-marker | Strong emphasis marker not * | | remark-lint-table-cell-padding | Table cell not padded | | remark-lint-table-pipe-alignment | Unaligned tables | | remark-lint-table-pipes | Table row not fenced with pipes | | remark-lint-unordered-list-marker-style | Unordered list marker not * | | remark-validate-links | Invalid link or image to local files and headings |

These plugins were considered and rejected:

| Plugin | Issue | | ---------------------------------------- | ---------------------------------------------------------------------------- | | remark-lint-maximum-heading-length | Headings too long. We don’t want to put a limit on headings. | | remark-lint-no-emphasis-as-heading | Emphasis or strong emphasis used as heading. Sometimes, that’s what we want. | | remark-lint-no-heading-punctuation | Heading ends with punctuation. We sometimes want punctuation. |

We also use remark-retext with retext-preset-stoicism for text warnings and spellchecking.

Prerequisites

In the following sections, we describe how to install remark-preset-stoicism with npm and how to use it with remark to check and format Markdown files.

Alternatives include yarn instead of npm.

Installation

Install remark-preset-stoicism and other dependencies as a development dependency:

npm install --save-dev \
  remark-preset-stoicism \
  remark-cli

Usage

Configuration

Create a file called .remark.js:

exports.plugins = [require('remark-preset-stoicism')]

Script

Define scripts in your package.json to run remark on your Markdown files:

"scripts": {
  "check-md": "remark --quiet --frail .",
  "format-md": "remark --quiet --frail --output ."
}

Run the scripts with npm run:

npm run check-md
npm run format-md

License

Blue Oak Model License 1.0.0 © Sean Leather