1.0.3 • Published 6 years ago

fixedstr v1.0.3

Weekly downloads
30
License
MIT
Repository
github
Last release
6 years ago

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'
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

10 years ago

0.0.1

10 years ago