JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 173527
  • Score
    100M100P100Q171582F
  • License MIT

a synchronous prompt for node.js

Package Exports

  • prompt-sync

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prompt-sync) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SYNOPSIS

A sync prompt for node. very simple. no C++ bindings and no bash scripts.

USAGE

//
// write some text to the screen.
//
process.stdout.write('How many more times? ');

//
// get input from the user.
//
var n = prompt();

//
// do something dumb with it.
//
process.stdout.write(n + ' is ' + n + 'times too many');