tj / co-prompt

sane terminal user-input for node.js using thunks / generators
192 stars 23 forks source link

prompt Unexpected identifier #11

Open kuangpeng opened 8 years ago

kuangpeng commented 8 years ago

i require the co-prompt, but throw an error that say " SyntaxError: Unexpected identifier" var prompt1 = require("co-prompt"); var name = yield prompt1('username: ');

the error point to second prompt1

i have no idea to resovle it, could you give me the answer?