Skip to content

200ok-ch/json2xlsx

Repository files navigation

   _                 ____       _
  (_)___  ___  _ __ |___ \__  _| |_____  __
  | / __|/ _ \| '_ \  __) \ \/ / / __\ \/ /
  | \__ \ (_) | | | |/ __/ >  <| \__ \>  <
 _/ |___/\___/|_| |_|_____/_/\_\_|___/_/\_\
|__/

NAME

json2xlsx - Convert a JSON data structure to an Excel compatible xlsx file.

SYNOPSIS

Usage: json2xlsx [options]
        -i, --input FILE   -            Input file
        -o, --output FILE  output.xlsx  Output file
        -v                              Verbosity level
        -h, --help

DESCRIPTION

json2xlsx makes it trivial to generate Excel compatible spreadsheets on any operating system Clojure supports.

EXAMPLES

Create a demo Excel file:

$ echo '[["A1", "A2"],["foo","bar"]]' | json2xlsx -o demo.xlsx
XSLX written to: demo.xlsx

INSTALLATION

json2xlsx is implemented in Clojure and yields a single binary. You can download it from https://github.com/200ok-ch/json2xlsx/releases/.

DEVELOPMENT

json2xlsx is implemented in Clojure, dependencies are managed with Leiningen.

After checking out the repo, run lein install to install dependencies. You can also run lein repl for an interactive REPL that will allow you to experiment.

To build a new version of json2xlsx as a binary onto your local machine, run lein bin. The resulting binary will be in the target/base+system+user+dev folder.