Skip to content

Commit

Permalink
Add explanation of REPL to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomohito Nakayama committed May 10, 2016
1 parent c7b549a commit 4994967
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,66 @@ JSON file as variable in program which runs on node.js
.exec();
[how to use ...](./document/how2use.md)

# REPL
Supports REPL feature.
````
$ sudo npm install -g json.filed
$ json.filed
> hello = jf.filed('./hello.json')
filedExecuter {
parent: null,
io: [Function],
read: [Function],
in: [Function],
write: [Function],
out: [Function],
copy: [Function],
link: [Function],
pass: [Function],
filter: [Function],
calledback: [Function],
httpServe: [Function],
parallel: [Function],
collect: [Function],
exec: [Function],
plan: [Function],
file: [Function],
_events: { error: [Function] },
_eventsCount: 1 }
> hello.read( o => { val = o }).exec()
rootPlan {
_nextPlan:
executePlan {
_nextPlan:
notexecPlan {
_nextPlan: null,
next: [Function],
exec: [Function],
runtime: [Object] },
next: [Function],
exec: [Function],
runtime:
runtimeInformation {
collect: [Function],
addJsonFile: [Function],
removeJsonFile: [Function],
resetJsonFile: [Function],
countInProgress: [Function] } },
next: [Function],
exec: [Function],
fixedFiles: [ JsonFile { path: [Function] } ],
runtime:
runtimeInformation {
collect: [Function],
addJsonFile: [Function],
removeJsonFile: [Function],
resetJsonFile: [Function],
countInProgress: [Function] } }
> val
{ msg: 'Hello World' }
````


# Deferred
Reading and writing file and so on are executed in [deferred manner](./document/HowDeferred.md) to make best use of node.js.

Expand Down

0 comments on commit 4994967

Please sign in to comment.