https://github.com/yeonjuan/md-replacer
https://github.com/yeonjuan/md-replacer
markdown replacer
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yeonjuan/md-replacer
- Owner: yeonjuan
- Created: 2021-06-07T12:29:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-12T05:07:40.000Z (almost 4 years ago)
- Last Synced: 2025-02-13T22:38:02.274Z (2 months ago)
- Topics: markdown, replacer
- Language: TypeScript
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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