truely

0.0.3 • Public • Published

Truely

Tests for truthy values and returns a boolean value. Can take interger, string, or even object values.

Installation

Using npm:

$ npm install --save truely

In NodeJs/io.js

var truely= require('truely');

//some truely tests

truely('yes') 
	=> true

truely('1') 
	=> true

truely('0') 
	=> false

truely('yes') 
	=> true

truely(0) 
	=> false

truely(false) 
	=> false

truely({}) 
	=> false

truely({has:'value'}) 
	=> true

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i truely

Weekly Downloads

0

Version

0.0.3

License

BSD

Last publish

Collaborators

  • nguru