gitbook-summary-to-path
v2.0.0
Published
gitbook SUMMARY.md to path list.
Readme
gitbook-summary-to-path
Parse SUMMARY.md of GitBook and print file path list.
Installation
npm install gitbook-summary-to-pathUsage
Command Line
$ npx gitbook-summary-to-path SUMMARY.md
/path/to/gitbook-summary-to-path/test/fixtures/README.md
/path/to/gitbook-summary-to-path/test/fixtures/jQuery.mdUse case
Use gitbook-summary-to-path with textlint.
Example) Lint all files in SUMMARY.md with textlint.
npm install -D textlint textlint-rule-no-todo gitbook-summary-to-path
npx gitbook-summary-to-path SUMMARY.md | xargs npx textlint --rule no-todoTests
npm testContributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
MIT
