Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

serde-fns

ehmpathy158MIT1.2.0TypeScript support: included

simple shapes and procedures for serde with a pit-of-success

serde, json, serial, deserialize, serialize

readme

serde-fns

test publish

simple shapes and procedures for serde with a pit-of-success

install

npm install serde-fns

use

for example

import { isSerialJSON, SerialJSON } from 'serde-fns';

const words = '{"hello":"world"}';
const isValid = isSerialJSON.assess(words);
const json: SerialJSON = isSerialJSON.assure(words);
const obj = deSerialJSON(json)

changelog

Changelog

1.2.0 (2024-12-03)

Features

  • uri: add serial uri component shape & serde (ad3c1f7)

1.1.0 (2024-11-30)

Features

  • base64: support base64 serde (82e3e48)

1.0.0 (2024-07-28)

Features

  • init: initialize based on as-command (fb70265)

1.0.1 (2024-05-26)

Bug Fixes

1.0.0 (2024-05-26)

Features

  • init: initialize repo based on latest best practices (6a3a5e5)
  • src: expose asCommand method (df4ea6e)