Skip to content

Instantly share code, notes, and snippets.

@dypsilon
Created May 11, 2016 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dypsilon/48c3fe70cb6feee595f1db8d3cacdb86 to your computer and use it in GitHub Desktop.
Save dypsilon/48c3fe70cb6feee595f1db8d3cacdb86 to your computer and use it in GitHub Desktop.
var publishCategory = function(node) {
return pipe(
prop('_id'),
descend(fetch, -1),
map(stringifyC),
pipeToFile(path.join(exportDir, node.url)), // <--- !!
P.proceed(reportWriteCompletion),
most.fromPromise
)(node);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment