0.2.9 • Published 4 years ago

ice-to-plain v0.2.9

Weekly downloads
490
License
GPL-2.0
Repository
github
Last release
4 years ago

Ice to Plain npm version Build Status

Convert Ice stuff to and from plain JS objects. Supports long, enum, struct, dictionary, exception and class, as well as JS objects, arrays, Maps and Sets.

Installation

$ npm install ice-to-plain

Usage

import {iceToPlain, iceToJson, iceFromPlain} from 'ice-to-plain';
import {isEqual} from 'lodash';

const plain = iceToPlain(someIceValue);
isEqual(someIceValue, iceFromPlain(plain)); // true

// 4-5x faster than JSON.stringify for Ice objects
// but 4-5x slower on regular JS objects
const json = iceToJson(someIceValue);
0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.2.0-beta.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago