An open API service indexing awesome lists of open source software.

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

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 [![NPM version](https://badge.fury.io/js/is-true-ish.svg)](http://badge.fury.io/js/is-true-ish)
[![Build Status](https://travis-ci.org/AndreasPizsa/is-true-ish.svg)](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._