fredeil / dotnet-ndjson

A dotnet cli tool for printing newline delimited json to console

Home Page:https://www.nuget.org/packages/ndjson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A dotnet cli tool for printing newline delimited json to console

https://www.nuget.org/packages/ndjson

License:MIT License


Languages

Language:F# 71.5%Language:C# 28.5%