![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
sync-prompt
Advanced tools
Synchronously prompt users for command-line input. Do more on Node.js, with less.
Simply run npm install sync-prompt
, and you should be good to go.
Example usage:
var prompt = require('sync-prompt').prompt;
var name = prompt('What is your name? ');
// User enters "Mike".
console.log('Hello, ' + name + '!');
// -> Hello, Mike!
var hidden = true;
var password = prompt('Password: ', hidden);
// User enters a password, but nothing will be written to the screen.
.prompt([question [, hidden = false]])
When called, it will prompt the user for a command line input.
question
Type: string
. Default value: undefined. Optional
When set to a string, the value of question
will be outputed to the console.
hidden
Type: boolean
. Default value: undefined. Optional, but requires question
to be set to a string.
When set to true, none of the user's input will be written to the console. This is great for passwords.
Be sure that you have the dependencies installed, locally, for the project:
npm install
And then run the tests:
npm test
You can run
npm run coverage
And see a summary of the code coverage on the command line.
You can get an in-depth coverage report in the generated coverage/lcov-report/index.html
file.
Unless stated in file headers, the license is found in the LICENSE
file.
FAQs
The missing prompt function for Node.js
The npm package sync-prompt receives a total of 44 weekly downloads. As such, sync-prompt popularity was classified as not popular.
We found that sync-prompt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.