]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/fn.input
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / init-package-json / node_modules / promzard / test / fn.input
diff --git a/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/fn.input b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/fn.input
new file mode 100644 (file)
index 0000000..ed6c3f1
--- /dev/null
@@ -0,0 +1,18 @@
+var fs = require('fs')
+
+module.exports = {
+  "a": 1 + 2,
+  "b": prompt('To be or not to be?', '!2b', function (s) {
+    return s.toUpperCase() + '...'
+  }),
+  "c": {
+    "x": prompt(function (x) { return x * 100 }),
+    "y": tmpdir + "/y/file.txt"
+  },
+  a_function: function (cb) {
+    fs.readFile(__filename, 'utf8', cb)
+  },
+  asyncPrompt: function (cb) {
+    return cb(null, prompt('a prompt at any other time would smell as sweet'))
+  }
+}