fixedstr
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

fixedstr

Transforms fixed string to object and vice versa

    var transformer = new fixedstr([
        fixedstr.str('foo', 2),
        fixedstr.str('bar', 5),
        fixedstr.number('baz', 3)
    ]);
    transformer.objectify('F Bar  012'); // {foo: 'F', bar: 'Bar', baz: 12}
    transformer.stringify({foo: 'F', bar: 'Bar', baz: 12}); // 'F Bar  012'

/fixedstr/

    Package Sidebar

    Install

    npm i fixedstr

    Weekly Downloads

    3

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    13.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • tryggingamidstodin