https://github.com/matype/code-dripper
Drip code blocks from the markdown file
https://github.com/matype/code-dripper
Last synced: 11 months ago
JSON representation
Drip code blocks from the markdown file
- Host: GitHub
- URL: https://github.com/matype/code-dripper
- Owner: matype
- License: other
- Created: 2017-01-27T14:15:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-27T14:49:55.000Z (over 9 years ago)
- Last Synced: 2025-05-18T22:33:34.860Z (about 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license
Awesome Lists containing this project
README
# code-dripper [](https://travis-ci.org/morishitter/code-dripper)
Drip code blocks from the markdown file.
## Installation
```shell
$ npm install code-dripper
```
## Usage
### CLI
```
$ code-dripper sample.md
```
### Node.js
```js
var fs = require('fs')
var codeDripper = require('code-dripper')
var md = fs.readFileSync('./sample.md', 'utf-8')
codeDripper(md)
```
## License
The MIT License (MIT)
Copyright (c) 2016 Masaaki Morishita