An open API service indexing awesome lists of open source software.

https://github.com/yeonjuan/md-replacer


https://github.com/yeonjuan/md-replacer

markdown replacer

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# md-replacer

## Installation

```bash
$ npm install -D md-replacer
```

## Usage

- README.md

```markdown

```

- example.js

```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

```markdown

# PROJECT

```

## License

- MIT