https://github.com/andreaspitzer/is-true-ish
Returns true if a string is tru-ish, that is, yes|y|true|t|on|1|ok
https://github.com/andreaspitzer/is-true-ish
Last synced: 10 months ago
JSON representation
Returns true if a string is tru-ish, that is, yes|y|true|t|on|1|ok
- Host: GitHub
- URL: https://github.com/andreaspitzer/is-true-ish
- Owner: andreaspitzer
- License: mit
- Created: 2014-09-21T14:00:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T08:08:44.000Z (over 7 years ago)
- Last Synced: 2025-08-26T10:05:05.859Z (10 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# This package has been retired. Please use [is-affirmative](https://www.npmjs.com/package/is-affirmative) instead, it’s an excellent and actively maintained replacement.
# is-true-ish [](http://badge.fury.io/js/is-true-ish)
[](https://travis-ci.org/AndreasPizsa/is-true-ish)
> Returns true if a string is tru-ish, that is, yes|y|true|t|on|1|ok, case insensitive
## Install
#### Install with [npm](npmjs.org)
```bash
npm i is-true-ish --save
```
## Usage
Require `is-true-ish`:
```js
var isTrueIsh = require('is-true-ish');
console.log(isTrueIsh('yes'));
//=> true
```
## Issues
Please [report any bugs or feature requests](https://github.com/AndreasPizsa/is-true-ish/issues/new), and consider making a Pull Request, thanks!
## Contribute
> Whatever value you'd like to add to the project, we'd love to have your help! If you'd like to take a more active role, get in touch! We'd be happy to help you get started!
* If you find this project useful please consider "starring" it to show your support!
* Find a bug? Have a feature request? Please [create an Issue](https://github.com/AndreasPizsa/is-true-ish/issues)
* In lieu of a formal styleguide please take care to maintain the existing coding style
* Add unit tests for any new or changed functionality
## Pull requests
Pull requests are encouraged! This project builds its own documentation, so please remember to build the documentation with [Verb](https://github.com/assemble/verb) before you submit your pull request! Please don't edit the readme or other docs directly, edit their respective templates instead.
### Building the docs
To build the docs, first make sure [verb-cli](https://github.com/assemble/verb-cli) is installed globally (`npm i -g verb-cli`), then just follow these simple steps:
* Edit the templates in the ['docs/' directory](./docs), and/or [.verbrc.md](./.verbrc.md)
* Run `verb` in the command line
* Pull request!
Thanks!
## Author
**Andreas Pizsa**
+ [github/AndreasPizsa](https://github.com/AndreasPizsa)
+ [twitter/AndreasPizsa](http://twitter.com/AndreasPizsa)
## License
Copyright (c) 2014 Andreas Pizsa, contributors.
Released under the MIT license.
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 21, 2014._