@hashmark/cli
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Hashmark CLI

Installation

sudo npm install -g @hashmark/cli

Usage

Once installed, the CLI is available through the hm command. Currently, the only available command is hm convert, which parses a hashmark document:

$ hm convert --help
hm convert [options] <file>

Convert Hashmark files

Positionals:
  file  Path to a Hashmark file                              [string] [required]

Options:
  --version, -v  Show version number                                   [boolean]
  --help, -h     Show help                                             [boolean]
  --format, -f
   [string] [choices: "auto", "json", "xml"] [default: "auto": infers the format
                                       from the output file. Defaults to "json"]
  --output, -o   Write output to a file                                 [string]

Development

Clone the repository, and install dependencies with:

npm install

To build the project, run:

npm run build

To run the build, you can link the built files to your PATH by running:

sudo npm link

This will make the built files available under the hm command. You can run npm run build to re-build, and hm will now run your latest build. To unlink the hm command from the built file, run:

sudo npm unlink

Readme

Keywords

Package Sidebar

Install

npm i @hashmark/cli

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

17.2 kB

Total Files

18

Last publish

Collaborators

  • mbovel
  • maximekjaer