Skip to content

proletariatgames/hxnodejs-stream-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Haxe/hxnodejs externs for the stream-json npm library

Tested using stream-json version "1.0.1"

Example:

import haxe.Json;
import js.node.Fs;
import js.npm.stream_json.Parser;
import js.npm.stream_json.streamers.StreamArray;

final file = 'my_file.json';

final chain = Chain.make([
  Fs.createReadStream(file),
  Parser.make(),
  StreamArray.make()
]);

chain.on('error', (data) -> {
  trace(Json.stringify(data));
});

About

Haxe/hxnodejs externs for the stream-json npm library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages