• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1var fs = require('fs')
2
3module.exports = {
4  "a": 1 + 2,
5  "b": prompt('To be or not to be?', '!2b', function (s) {
6    return s.toUpperCase() + '...'
7  }),
8  "c": {
9    "x": prompt(function (x) { return x * 100 }),
10    "y": tmpdir + "/y/file.txt"
11  },
12  a_function: function (cb) {
13    fs.readFile(__filename, 'utf8', cb)
14  },
15  asyncPrompt: function (cb) {
16    return cb(null, prompt('a prompt at any other time would smell as sweet'))
17  }
18}
19