1.0.2 • Published 9 years ago

typeback v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

typeback Build Status

The library allows to retrieve typed value of strings by content. Arrays and objects are handled element-by-element. It allows to handle nested objects and arrays too.

how to use

    > var typeback = require('typeback')
    
    > typeback("123")
    123
    
    > typeback("123.4")
    123.4
    
    > typeback("abc")
    "abc"
    
    > typeback({a: "123", b: "123.4", c: ["1", "2", "3", "d"], d: "e"})
    {a: 123, b: 123.4, c: [1, 2, 3, "d"], d: "e"}

licence

MIT