@sugarcube/plugin-tap v0.42.1
@sugarcube/plugin-tap
Plugins for SugarCube for side effect only.
Installation
npm install --save @sugarcube/plugin-tapPlugins
tap_printf
$(npm bin)/sugarcube -c cfg.json -p twitter_feed,tap_printfPrints the whole envelope (i.e. data and queries) and the full configuration to the screen.
Configuration:
tap.select:: Specify the elements to print to the screen. Defaults todata. Valid values aredata,queries,stats,cache,pluginsandcfg. Specify multiple values by separating values by a comma.Example: Print only data and queries to the screen.
$(npm bin)/sugarcube -p tap_printf --tap.select data,queriestap.limit:: Limit the output to X data units.Example: Print only 5 units of data.
$(npm bin)/sugarcube -c cfg.json -p twitter_feed,tap_printf --tap.limit 5tap.exclude:: Exclude those fields from printing.$(npm bin)/sugarcube -c cfg.json -p http_import,tap_printf --tap.exclude body,_sc_body
tap_writef
$(npm bin)/sugarcube -c cfg.json -p twitter_feed,tap_writefWrite the data part of the envelope to a file.
Configuration:
tap.limit:: Limit the output to N data units.Example: Print only 5 units of data.
$(npm bin)/sugarcube -c cfg.json -p twitter_feed,tap_writef --tap.limit 5tap.filename:: Specify the name of the output file. Defaults todata-<marker>.json.tap.chunk_size:: Split the data into multiple chunks and write each chunk into it's own file. The file name is based ontap.filenamebut the chunk id is injected into the filename.
License
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago