Generate a PDF book from GitHub repo URL
The project depends on the following technologies and libraries:
Node.js;TypeScript;jestandts-jest;ts-node-dev;tslintandtslint-config-airbnb.
As you see, there no dependencies but various dev tools.
(These installation instructions would be valid after publishing, so the package name could change).
Let's consider you use Yarn as your package manager. If you use npm, it would pretty easy for you to translate the commands using this cheatsheet.
To install it as a global binary, use the following command:
$ yarn global add github-bookTo install it as your project dependency, run:
$ yarn add github-bookIf you have the package installed globally, you can use github-book as binary name. Otherwise keep
in mind that you can use ./node_modules/github-book/dist/index.js or yarn start (in development mode)
instead of github-book.
$ github-book --help
Syntax: github-book [options]
Options:
--url: [*] URL of the GitHub repo
--out-file: [*] Output file path
--version Print package version
--help Print this help messageCurrently the library has limitation: the repo should be public.
It is recommend to manage Node versions with NVM.
After cloning the project, run
$ yarnto install the project dependencies. Project has only development dependencies: TypeScript, tslint, jest, etc. As the command succeeded, type
$ yarn buildto build the project locally.
Author: Denis Tokarev (@devlato)
License: MIT