A standard style for README files
Go to file
Richard Littauer 6d2ccf5994 1.0.1
2016-05-12 18:01:09 -04:00
.gitignore Initial commit 2015-10-16 16:35:17 -04:00
.remarkrc Formatting 2015-12-27 18:14:09 -05:00
index.js Added package, used lint 2015-12-27 16:04:44 -05:00
LICENSE Initial commit 2015-10-16 16:35:17 -04:00
package.json 1.0.1 2016-05-12 18:01:09 -04:00
README.md Update description 2016-05-12 18:00:56 -04:00

Standard Readme

Readme Standard Style

This repo is for standardizing how READMEs should look. The goal is to have:

  • A well defined specification that other people could look to;
  • An example README that can be used for comparison (this README.md is the example);
  • A linter that can be used to look at errors in a given Readme;
  • A generator that can be used to quickly scaffold out new READMEs.

There are many standards. This is mine.

** Table of Contents **

Installation

Note: This is a placeholder, at the moment.

This project uses node and npmjs. Go check them out if you don't have them locally installed.

npm i -g standard-readme

Usage

Note: This is a placeholder, at the moment.

The settings are stored in the .remarkrc file. Ideally, this file should be added to each repository where you plan to use remark. There are plans to enable a single .remarkrc to be used in multiple repos.

$ npm i -g remark
$ npm i
$ remark README.md -o README.md

Contribute

Feel free to dive in! Open an issue or submit PRs.

Specification

Requirements

A compliant README must:

  • Be called README.md (with capitalization).
  • Be a valid Markdown file.

Sections

Name

Status: Optional.

Requirements:

  • Must be first section.
  • Must match repository name. If it cannot, there must be a note in the long description about why.
  • Must match package manager name. If it cannot, there must be a note in the long description about why.

Suggestions:

  • Should be self-evident.

Banner

Status: Optional.
Requirements:

  • Must link to local image in current repository.
  • Must appear directly after the title.

Badges

Requirements:

  • If present, must go beneath banner (if present), or beneath title.
  • Must be newline delimited.

one-line description

Requirements:

  • Must be less than 120 characters.
  • Must start with >
  • Must be on it's own line.
  • Must match the description in the packager manager's description field.
  • Must match GitHub's description (if on GitHub).

Suggestions:

Table of Contents

Requirements: There must be a Table of Contents that links to the

Usage Section

Suggestions: Cover promises/callbacks, ES6 here.

API

Requirements: Describe internal objects and functions, signatures, return types, callbacks, and events. Types covered where not obvious. Caveats.

Installation

Requirements: Installation command. Suggestions: Link to prerequisite sites for language. npmjs, [godocs][], etc.

License

Requirements: State License. Suggestions: Link to longer License file.

Suggestions

Background section

Requirements: Motivation, abstract dependencies

Conventions

cb for callback num for Number int for Integer bool for Boolean etc.

License

MIT (c) Protocol Labs