form8ion / remark-remove-greenkeeper-badge

remark plugin for removing a greenkeeper badge
https://npm.im/remark-remove-greenkeeper-badge
MIT License
1 stars 0 forks source link
hacktoberfest remark-plugin

remark-remove-greenkeeper-badge

remark plugin for removing a greenkeeper badge

Node CI Workflow Status

Table of Contents

Usage

MIT license npm Try remark-remove-greenkeeper-badge on RunKit

Installation

$ npm install remark-remove-greenkeeper-badge --save-prod

Example

Import

import fs from 'node:fs';
import {remark} from 'remark';
import remarkRemoveGreenkeeperBadge from 'remark-remove-greenkeeper-badge';

Execute

remark()
  .use(remarkRemoveGreenkeeperBadge)
  .process(
    `# project-name

[![Greenkeeper badge](https://badges.greenkeeper.io/your-account/project-name.svg)](https://greenkeeper.io/)
`,
    (err, file) => {
      fs.writeFileSync(`${process.cwd()}/README.md`, `${file}`);
    }
  );

Contributing

PRs Welcome Conventional Commits Commitizen friendly semantic-release Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test