@kaudal/curriculum-parser
Command line tool used to parse content written in markdown for our courses in Aprende at @kaudal
Installation
Install as a development dependency in your project:
npm i --save-dev @kaudal/curriculum-parser
You should now be able to run it with npx
:
npx curriculum-parser
npx @kaudal/curriculum-parser
You can also install curriculum-parser
globally using npm
like this:
npm i -g @kaudal/curriculum-parser
If you get a permission error please try using sudo
(you may need admin
permissions depending on your node installation).
sudo npm i -g @kaudal/curriculum-parser
Alternatively you can install using a local clone.
git clone git@github.com:<your-username>Kaudal/curriculum-parser.git
cd curriculum-parser
npm install
npm link
If the above command fails, try using sudo
:
sudo npm link
Upgrade
If you installed globally using npm
you can simply re-install like so:
npm i -g @kaudal/curriculum-parser
If you chose to install using a local clone, you can update your clone to
upstream master:
cd curriculum-parser
git remote add upstream git@github.com:Kaudal/curriculum-parser.git
git fetch upstream
git merge upstream/master
git push origin master
Usage
After installing globally (or linking with npm link
) you should have the
curriculum-parser
command available in your PATH
.
Usage: curriculum-parser [command] [options]
Commands:
help
topic <dir> --repo --version --locale --track [--suffix]
project <dir> --repo --version --locale --track [--lo=some/dir] [--suffix]
Global options:
-h, --help Show help
-V Show version
Example
Parse a topic (course) in some arbitrary directory
curriculum-parser topic . \
--repo some-github-user/some-github-repo \
--path . \
--version 1.0.0 \
--track business \
--locale es-ES