Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jezen/is-thirteen
Check if a number is equal to 13.
https://github.com/jezen/is-thirteen
Last synced: 5 days ago
JSON representation
Check if a number is equal to 13.
- Host: GitHub
- URL: https://github.com/jezen/is-thirteen
- Owner: jezen
- Created: 2016-03-23T15:48:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-19T22:09:46.000Z (3 months ago)
- Last Synced: 2024-10-29T15:05:13.716Z (2 months ago)
- Language: JavaScript
- Size: 4.69 MB
- Stars: 5,616
- Watchers: 36
- Forks: 470
- Open Issues: 382
-
Metadata Files:
- Readme: README.md
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
- awesome-ccamel - jezen/is-thirteen - Check if a number is equal to 13. (JavaScript)
- awesome-hilarious-repos - is-thirteen npm package - verify if a number is equal 13 (wtfffff) (Libraries, Frameworks and SDKs)
- awesome-dev-fun - is-thirteen - Check if a number is equal to 13. (JavaScript)
- awesome-list - is-thirteen
README
_Special thanks to [@casdr](https://github.com/casdr) for the logo_
# is-thirteen[![Build Status](https://travis-ci.org/jezen/is-thirteen.svg?branch=master)](https://travis-ci.org/jezen/is-thirteen)
[![Join us on Gitter](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/gytdau/is-thirteen)An npm package to check if a number is equal to 13.
## Installation
```sh
npm --save i is-thirteen
```or
```sh
yarn add is-thirteen
```## Usage
```javascript
const isThirteen = require('is-thirteen');// PLEAS READ THE SOURCE CODE BECAuse we moved fast and broke things
i̶s̶T̶h̶i̶r̶t̶e̶e̶n̶(̶2̶5̶)̶;̶ ̶/̶/̶ ̶f̶a̶l̶s̶e̶
i̶s̶T̶h̶i̶r̶t̶e̶e̶n̶(̶1̶3̶)̶;̶ ̶/̶/̶ ̶t̶r̶u̶e̶
``````javascript
const is = require('is-thirteen');
// Now with elegant syntax.is(13).thirteen(); // true
is(12.8).roughly.thirteen(); // true
is(6).within(10).of.thirteen(); // true
is(2011).yearOfBirth(); // true// check your math skillz
is(4).plus(5).thirteen(); // false
is(12).plus(1).thirteen(); // true
is(4).minus(12).thirteen(); // false
is(14).minus(1).thirteen(); // true
is(1).times(8).thirteen(); // false
is(26).divideby(2).thirteen(); // true
```## Test
```shell
npm test
```## License
[WTFPL](http://www.wtfpl.net/txt/copying/)
A helpful tool by [Jezen Thomas](https://jezenthomas.com) with helpful
help from [Gytis Daujotas](https://twitter.com/gytdau) and many fine folk.