diff options
Diffstat (limited to 'node_modules/promzard/example/index.js')
-rw-r--r-- | node_modules/promzard/example/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/promzard/example/index.js b/node_modules/promzard/example/index.js new file mode 100644 index 000000000..435131f3a --- /dev/null +++ b/node_modules/promzard/example/index.js @@ -0,0 +1,11 @@ +var pz = require('../promzard') + +var path = require('path') +var file = path.resolve(__dirname, 'substack-input.js') +var ctx = { basename: path.basename(path.dirname(file)) } + +pz(file, ctx, function (er, res) { + if (er) + throw er + console.error(JSON.stringify(res, null, 2)) +}) |