create a one-file manuscript from a bunch of chapters. designed for leanpub books but not limited to that.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test-manuscript
.gitignore
index.js
package.json
preface.md
readme.md
test-readme.md
test.js

readme.md

manuscript builder

create a one-file manuscript from a bunch of chapters.

I mostly use it for concatenating chapters of a book into a readme for the book's github repo.

It's designed to work with leanpub books, but could work for other stuff as well.

usage example:

var build = require('manuscript-builder')

build({
  target: '/test-readme.md',
  include: ['preface.md'],
  bookDir: '/test-manuscript/',
  tableOfContents: '/test-manuscript/Book.txt'
}, function (err, markdown) {
  console.log(err, markdown)
})