[ 源代码: node-yn ]
软件包:node-yn(3.0.0-1)
Parse yes/no like values - Node.js module
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.