@form8ion/remark-readme

1.0.0 • Public • Published

remark-readme

remark plugin for transforming the README for projects that follow form8ion conventions

Node CI Workflow Status

Table of Contents

Usage

MIT license npm Try @form8ion/remark-readme on RunKit

Installation

$ npm install @form8ion/remark-readme --save

Example

Import

import fs from 'fs';
import remark from 'remark';
import updateReadme from '@form8ion/remark-readme';

Execute

remark()
  .use(
    updateReadme,
    {
      usage: 'information about using the project'
    }
  )
  .process(
    `# project-name

Description of the project

<!--status-badges start -->
<!--status-badges end -->

<!--consumer-badges start -->
<!--consumer-badges end -->

<!--contribution-badges start -->
<!--contribution-badges end -->
`,
    (err, file) => {
      fs.writeFileSync(`${process.cwd()}/README.md`, file.contents);
    }
  );

Contributing

PRs Welcome Commitizen friendly Conventional Commits semantic-release Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test

Install

npm i @form8ion/remark-readme

DownloadsWeekly Downloads

1,229

Version

1.0.0

License

MIT

Unpacked Size

30.2 kB

Total Files

8

Last publish

Collaborators

  • travi
  • form8ion-bot