https://github.com/elsehow/bundledown
include statements for markdown c:
https://github.com/elsehow/bundledown
Last synced: about 1 year ago
JSON representation
include statements for markdown c:
- Host: GitHub
- URL: https://github.com/elsehow/bundledown
- Owner: elsehow
- Created: 2015-11-18T19:44:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-09T17:48:01.000Z (about 10 years ago)
- Last Synced: 2025-03-18T11:45:15.228Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bundledown
recursively bundle arbitrary files!!!!
## installation
npm install -g bundledown
## usage
make a markdown file:
```markdown
# my cool markdown document
lets bundle some markdown
@include('./src/other-markdown-file.md')
nice
```
now just
bundledown index.md -o bundle.md
or, in js,
```js
var bundledown = require('bundledown')
var filePath = require('path').join(__dirname, 'myfile.md')
var readStream = require('fs').createReadStream(filePath)
bundledown(readStream).pipe(process.stdout)
```
## api
### bundledown(path)
recursively bundles the file at path. returns a stream.
## license
BSD