summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/promzard/example/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/promzard/example/index.js')
-rw-r--r--deps/npm/node_modules/promzard/example/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/npm/node_modules/promzard/example/index.js b/deps/npm/node_modules/promzard/example/index.js
new file mode 100644
index 0000000000..435131f3a6
--- /dev/null
+++ b/deps/npm/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))
+})