0.0.4 • Published 3 years ago

md-replacer v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

md-replacer

Installation

$ npm install -D md-replacer

Usage

  • README.md
<!-- start: name -->

<!-- start: name -->
  • example.js
const replacer = require("md-replacer");

const packageJSON = read("./package.json");
const README = read("./README.md");

const output = replacer()
  .content(README)
  .replace("name", () => `# ${name}`)
  .build();

write("./README.md", output);
  • README.md
<!-- start: name -->

# PROJECT

<!-- start: name -->

License

  • MIT