Giter Site home page Giter Site logo

is-thirteen's Introduction

Special thanks to @casdr for the logo

is-thirteen

Build Status Join us on Gitter

An npm package to check if a number is equal to 13.

Installation

npm --save i is-thirteen

Usage

var 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̶
var 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(2003).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

npm test

License

WTFPL

A helpful tool by Jezen Thomas with helpful help from Gytis Daujotas and many fine folk.

is-thirteen's People

Contributors

aaroncritchley avatar bcbcarl avatar bhalash avatar bluememory14 avatar boypt avatar colindean avatar dimasdanz avatar fforres avatar frg avatar fullstackhacker avatar gandalf- avatar gausie avatar gautamkrishnar avatar glundgren93 avatar gytdau avatar hukuuu avatar jezen avatar jodihum avatar konkked avatar liuru avatar loknar avatar mathiasose avatar ofek-a avatar rafalio avatar rafiuske avatar sanket30 avatar srzstephen avatar supre avatar tommypacker avatar wouter0100 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.