typeback

1.0.2 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i typeback

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • kreshikhin