Based on https://github.com/bahamas10/node-autocast but adapted for
existing JSON configurations. This version is meant to be used in CommonJS
The main differences with autocast are:
- hexadecimal and octals are not automatically casted, they remain as string
values. Casing them is as simple as adding a plus sign in front of the string
- "" and "-" are both casted to an empty string.
- functions objects and array are not casted by default
- supports deep casting by passing an optional deep flag.
npm install castit --save
var cast = ;
> var cast = ;