Posts

Showing posts with the label npm

S̶t̶o̶c̶k̶h̶o̶l̶m̶ Javascript Syndrome

Image
I'm not quite sure what's more frightening - that I just do it without thinking, or that doing it actually makes sense. /via http://www.commitstrip.com/en/2016/05/10/a-moment-of-nostalgia/

Genuinely Useful Repos — Episode #13

Image
This   from   Jezen Thomas , an npm package to check if a number is equal to   13 . Ridiculously useful, especially if you are   a huge Taylor Swift fan . Or are building  elevator controls in the US . Maybe you like   gambling in Italy ? Or have   Triskaidekaphobia ?   This, very definitely, is the repo for you! The syntax is clear and elegant: 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 and I look forward to embedding this in all my projects.