Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Cast values to more specific types with default values if they can't be casted
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
LICENSE
README.md
index.js
package.json

README.md

node-dank-cast

Cast values to more specific types with default values if they can't be casted

install

npm install dank-cast

examples

var cast = require('dank-cast');

cast.int('asdf', 0); // 0
cast.int('12345', 0); // 12345
cast.string(null, 'default value); //default value
cast.bool('yes'); //true
cast.float('1234.34); //1234.34

license

MIT

Something went wrong with that request. Please try again.