Package Exports
- is-affirmative
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 (is-affirmative) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-affirmative

Returns true if a value is an
affirmativevalue (from the affirmative lib). Useful for CLI prompts.
Install
Install with npm:
$ npm i is-affirmative --saveUsage
var isAffirmative = require('is-affirmative');
isAffirmative('yes');
//=> true
isAffirmative('no');
//=> falseSee the [affirmative][] library for all supported values.
Examples
Returns true if the value is affirmative:
isAffirmative('yes');
isAffirmative('yeah');
isAffirmative('ok');
isAffirmative('okay');
isAffirmative('sure');
//=> trueReturns false if the value is not (anything but) an affirmative value:
isAffirmative('nope');
//=> falseRelated projects
affirmative: Array of 'yes' words and phrases that express the user's agreement with a statement or… more | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm testContributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb on January 19, 2016.