summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/init-package-json/node_modules/promzard/test/fn.input
blob: ed6c3f1c80c5b59631ba479bbeb4e4c905bbfba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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'))
  }
}