/dotnet-ndjson

A dotnet cli tool for printing newline delimited json to console

Primary LanguageF#MIT LicenseMIT

dotnet-ndjson NuGet Badge

A simple dotnet CLI tool for printing Newline Delimited JSON (NDJSON) to console. It also handles normal JSON files too.

Installation

The latest release of dotnet-ndjson requires the 2.1.300 .NET Core 2.1 SDK or newer. Once installed, run this command:

dotnet tool install --global ndjson

Usage

Usage: ndjson [arguments]

Arguments:
  path  Path to the file

Options:
  -?|-h|--help            Show help information

Example

text.ndjson
{ "my" : "data" }
{ "more" : "data" }

Print to stdout:

$ ndjson text.ndjson
{
  "my" : "data"
}
{
  "more" : "data"
}

Simple as that!

Roadmap

  • Better usage of colors
  • Better "-More-" feature