WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

ndjson/ndjson.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ndjson.rb

Simple ndjson parser gem.

The Parser as well as the Generator take IO Objects or Strings. Strings are opened with the open-uri gem.

Note that this is written by a Ruby noob and looking for actual Ruby dev collaborators.

Usage

NDJSON::Parser

require 'ndjson'

parser = NDJSON::Parser.new( $stdin )
parser.each { |l| puts l }

NDJSON::Generator

generator = NDJSON::Generator.new( 'test.file' )

generator.write({:hello => "world"})
generator.write({:noob => "what"})

Resources

About

ndjson parser and generator for ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages