node-yn

Parse yes/no like values - Node.js module

Description

This Node.js module parses strings with yes/no like values and returns a bool or undefined. It has options to return a default instead of undefined and a lenient mode to gracefully handle typos.

It can useful for validating answers of a CLI prompt.

Node.js is an event-based server-side JavaScript engine.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/sindresorhus/yn


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install node-yn