0.2.5 • Published 4 years ago

@hydrant/lang-conversion v0.2.5

Weekly downloads
17
License
MIT
Repository
-
Last release
4 years ago

lang-conversion

install

npm install --save @hydrant/lang-conversion

usage

deserialize (import)

import { deserialize } from '@hydrant/lang-conversion';
const content = '{ "foo": "bar" }';

const result = await deserialize({ content, deserializer: 'json' });

You can also pass in filename instead of setting deserializer.

serialize (export)

import { serialize } from '@hydrant/lang-conversion';
const entries = [{ id: 'foo', value: 'bar' }];
const meta = { version: 3, date: '9.9.2020' };

const result = await serialize({ entries, meta, serializer: 'xml' });

You can also pass in filename instead of setting serializer.

0.2.5

4 years ago

0.2.3

4 years ago

0.2.4

4 years ago

0.2.2

5 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago