littlefork
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -89,5 +89,7 @@ 'use strict'; | ||
}); | ||
// FIXME: hom.fmapAsync is undefined, so is fmapAsync. Not sure why. Replace the | ||
// two calls to mapP with the appropriate calls to fmapAsync | ||
var fmapHomonymAsync = (0, _fp.curry)(function (field, f, xs) { | ||
return fmapAsync(function (u) { | ||
return _homonyms2.default.fmapAsync(f, u[field]).then(function (ys) { | ||
return (0, _combinators.mapP)(function (u) { | ||
return (0, _combinators.mapP)(f, u[field]).then(function (ys) { | ||
return concatOne(u, _defineProperty({}, field, ys)); | ||
@@ -94,0 +96,0 @@ }); |
@@ -36,3 +36,3 @@ 'use strict'; | ||
var mapP = exports.mapP = (0, _fp.curry)(function (f, xs) { | ||
return _bluebird2.default.map(xs, f, { concurrency: 1 }); | ||
return _bluebird2.default.map(xs, f, { concurrency: 1 }).catch(console.error); | ||
}); | ||
@@ -39,0 +39,0 @@ |
@@ -77,13 +77,15 @@ # Ultimately Littlefork | ||
$ $(npm bin)/littlefork -h | ||
tap_printf: Print the envelope to the screen. | ||
--tap.limit Limit the output to <n> data units. [number] | ||
Options: | ||
-p, --plugins A list of plugins [string] | ||
-p, --plugins A list of plugins [string] | ||
-q Path to JSON queries file | ||
-Q Queries in the form: | ||
<type>:<term>[,<type>:<term>[,..]]. Note that | ||
spaces have to be escaped, e.g.: | ||
twitter_search:Keith\ Johnstone | ||
-d, --debug Enable debug logging [boolean] | ||
-Q Queries in the form: <type>:<term>[,<type>:<term>[,..]]. Note | ||
that spaces have to be escaped, e.g.: | ||
twitter_search:Keith Johnstone | ||
-d, --debug Enable debug logging [boolean] | ||
-c Path to JSON config file | ||
-h, --help Show help [boolean] | ||
--tap.limit Limit the output to <n> data units. [number] | ||
-h, --help Show help [boolean] | ||
--version Show version number [boolean] | ||
``` | ||
@@ -156,3 +158,3 @@ | ||
``` | ||
cat <<EOF > queries.json | ||
$ cat <<EOF > queries.json | ||
[{ | ||
@@ -276,11 +278,20 @@ "type": "ddg_search", | ||
In this example we will use the plugin for twitter, the HTTP plugin to | ||
download images and the media plugin to extract EXIF data. | ||
``` | ||
$ $(npm bin)/littlefork -Q twitter_user:@jairbolsonaro,twitter_query:Jair\ Bolsonaro \ | ||
-p twitter_search,twitter_feed,http_get,media_exif \ | ||
--twitter.consumer_key <your key here> \ | ||
--twitter.consumer_secret <your key here> \ | ||
--twitter.access_token_key <your key here> \ | ||
--twitter.access_token_secret <your key here> | ||
$ npm install -S littlefork-plugin-twitter \ | ||
littlefork-plugin-http \ | ||
littlefork-plugin-media | ||
``` | ||
``` | ||
$ $(npm bin)/littlefork -Q twitter_user:@jairbolsonaro,twitter_query:Jair\ Bolsonaro \ | ||
-p twitter_search,twitter_feed,http_get,media_exif \ | ||
--twitter.consumer_key <your key here> \ | ||
--twitter.consumer_secret <your key here> \ | ||
--twitter.access_token_key <your key here> \ | ||
--twitter.access_token_secret <your key here> | ||
``` | ||
Or use a config file: | ||
@@ -287,0 +298,0 @@ |
{ | ||
"name": "littlefork", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"description": "A sequential data processing pipeline.", | ||
@@ -5,0 +5,0 @@ "main": "_dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115097
926