remark plugin for removing a greenkeeper badge
$ npm install remark-remove-greenkeeper-badge --save-prod
import fs from 'node:fs';
import {remark} from 'remark';
import remarkRemoveGreenkeeperBadge from 'remark-remove-greenkeeper-badge';
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}`);
}
);
$ nvm install
$ npm install
$ npm test