Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Latest commit

 

History

History
52 lines (36 loc) · 893 Bytes

README.md

File metadata and controls

52 lines (36 loc) · 893 Bytes

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