Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

To make each operator in a sequence decoupled, read inputs from JSON files with a standard name, and write outputs to JSON files with a standard name

License

Notifications You must be signed in to change notification settings

rapid-sensemaking-framework/rsf-reader-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsf-reader-writer

To make each rsf-operator in an rsf-sequence decoupled, read inputs from JSON files with a standard name, and write outputs to JSON files with a standard name

Installation

npm install --save rfs-reader-writer

API

INPUT_FILE_NAME

the string representing the standard file name for the files used as input files by this package

OUTPUT_FILE_NAME

the string representing the standard file name for the files used as output files by this package

readInput(dir)

read the standard input file (INPUT_FILE_NAME) from the filesystem from the given dir path, parse it to a JSON object, and return it

writeOutput(dir, result)

take the given result, stringify it to JSON, and then write it to the standard output file (OUTPUT_FILE_NAME) in the given dir path on the filesystem

About

To make each operator in a sequence decoupled, read inputs from JSON files with a standard name, and write outputs to JSON files with a standard name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published