Updated README

This commit is contained in:
Michaël Lemaire 2019-01-14 23:30:00 +01:00
parent 32008ae7c4
commit 49e2c36673

View file

@ -4,7 +4,7 @@ tk-serializer
[![Build status](https://img.shields.io/travis/thunderk/tk-serializer.svg)](https://travis-ci.org/thunderk/tk-serializer)
[![Code coverage](https://img.shields.io/codecov/c/github/thunderk/tk-serializer.svg)](https://codecov.io/gh/thunderk/tk-serializer)
[![NPM version](https://img.shields.io/npm/v/tk-serializer.svg)](https://www.npmjs.com/package/tk-serializer)
[![Minified size](https://img.shields.io/bundlephobia/min/tk-serializer.svg)](https://bundlephobia.com/result?p=tk-serializer@1.0.0)
[![Minified size](https://img.shields.io/bundlephobia/min/tk-serializer.svg)](https://bundlephobia.com/result?p=tk-serializer)
About
-----
@ -15,11 +15,18 @@ Deep objects state may be serialized to a string, and reconstructed back.
Class instances are reconstructed properly, as long as they are in the provided namespace. Circular references are handled.
Usage example
-------------
Install
-------
npm install tk-serializer
Use
---
Suppose you have 2 classes Class1 and Class2, whose instances you want to serialize.
```typescript
import { Serializer } from "ts-serializer";
import { Serializer } from "tk-serializer";
const namespace = {
Class1,