This package cannot be used alone. ezs has to be installed
import ezs from 'ezs';
import ezsBasics from 'ezs-basics';
ezs.use(ezsBasics);
process.stdin
.pipe(ezs('STATEMENT_NAME', { STATEMENT_PARAMETERS })
.pipe(process.stdout);
- BUFObject
- CSVObject
- CSVParse
- CSVString
- JSONParse
- JSONString
- OBJCount
- OBJFlatten
- OBJStandardize
- SKOSObject
- TXTConcat
- TXTObject
- TXTParse
- URLFetch
- XMLParse
- XMLString
Take Mixed
and produce Buffer.
For example, it's useful to send string to browser.
none
undefined
Returns Buffer
Take Array
and transform rows into object.
Each row (Array) is tranformed
into a object where keys are the value of the first row
none
undefined
Returns Object
Take String
and parse CSV to generate object
separator
String to indicate the CSV separator (optional, defaultauto
)quote
String to indicate the CSV quote. (optional, defaultauto
)
Returns Object
Take Object
and transform row into string
where each field is separated with a character
format
String if set to "strict" the fields will wrapped with double quote (optional, defaultstandard
)separator
String to indicate the CSV separator (optional, default;
)header
Boolean first line contains key name (optional, defaulttrue
)
Returns String
Take String
and parse JSON and generate objects
separator
String to split at every JSONPath found (optional, default*
)
Returns Object
Take Object
and generate JSON
wrap
String every document are wrapped into an array (optional, defaulttrue
)indent
String indent JSON (optional, defaultfalse
)
Returns String
Take Object
and count how many objects are received and sent the total
none
undefined
Returns Number
Take Object
and flat it with delimited character.
separator
String choose a character for flatten keys (optional, default/
)safe
Boolean preserve arrays and their contents, (optional, defaultfalse
)
Returns Object
Take Object
and standardize it so each object will have the sames keys
none
undefined
Returns Object
Take Object
generated by XMLMapping & SKOS data and
create a new basic object with only keys & values
none
undefined
Returns Object
Take String
and concat all items in just one string
none
undefined
Returns String
Take String
and generate an object with a key and a value, where the value is the input string.
key
String choose a the key name (optional, defaultvalue
)
Returns Object
Take String
and split at each separator found
separtor
String choose character which trigger the split (optional, default\n
)
Returns String
Take Object
and create a new field with the content of URL.
Or if no target will be specified, the output will be the content of URL
url
String? URL to fecthtarget
String? choose the key to setjson
String Pasre as JSON the content of URL (optional, defaultfalse
)
Returns Object
Take String
as XML input, parse it and split it in multi document at each path found
url
String? URL to fecthtarget
String? choose the key to setseparator
String choose a character for flatten keys (optional, default/
)
Returns Object
Take Object
and transform it into a XML string
rootElement
String Root element name for the tag which start and close the feed (optional, defaultitems
)contentElement
String Content element name for the tag which start and close each item (optional, defaultitem
)
Returns String