JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 720
  • Score
    100M100P100Q101152F
  • License MIT

Generate markdown tables from JSON data at the command line.

Package Exports

  • tablemark-cli

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tablemark-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tablemark-cli · Version License Travis CI JavaScript Standard Style

Generate markdown tables from JSON data at the command line.

Parse a JSON input file into a markdown table from the command line, powered by the tablemark module.

installation

npm i -g tablemark-cli

usage

Usage: tablemark <input-file> > <output-file> [options]

Commands:

  help  Display help

Options:

  -a, --align <list>    List of alignment types, applied in order to columns. (defaults to [])
  -c, --columns <list>  List of column names, defaults to object keys. (defaults to [])
  -h, --help            Output usage information
  -v, --version         Output the version number

To use the align and column options, you can use the -a or -c flags multiple times, like this:

tablemark input.json > output.md -a left -a center

... which will align the first two columns left and center respectively.

see also

license

MIT © Bo Lingen / citycide