A dotnet cli tool for printing newline delimited json to console
Switch branches/tags
Nothing to show
Clone or download
Latest commit 43dacc5 Dec 1, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create PULL_REQUEST_TEMPLATE.md Nov 23, 2018
src Fix indentation Nov 20, 2018
.gitignore Initial commit Nov 14, 2018
LICENSE Create LICENSE Nov 16, 2018
README.md Update README.md Dec 1, 2018
_config.yml Set theme jekyll-theme-minimal Nov 23, 2018

README.md

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