Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aikoven/ice-to-bson
Deprecated. Encode and decode ZeroC Ice objects into BSON objects
https://github.com/aikoven/ice-to-bson
Last synced: 3 days ago
JSON representation
Deprecated. Encode and decode ZeroC Ice objects into BSON objects
- Host: GitHub
- URL: https://github.com/aikoven/ice-to-bson
- Owner: aikoven
- Created: 2017-11-03T11:15:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T05:58:35.000Z (almost 7 years ago)
- Last Synced: 2024-11-08T10:33:30.213Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ice To BSON [![npm version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
## Deprecated — use [ice-to-plain](https://github.com/aikoven/ice-to-plain) instead.
Encode and decode ZeroC Ice objects into BSON objects.
## Installation
```bash
npm install ice-to-bson
```## Usage
```js
import {iceToBson, bsonToIce} from 'ice-to-bson';// Convert any JS object containing Ice Object values somewhere in the tree.
// Converting Ice Structs not contained inside Ice Objects is not supported
// due to Ice limitations.
const bson = iceToBson(iceObject);const readIceObject = bsonToIce(bson);
```[npm-image]: https://badge.fury.io/js/ice-to-bson.svg
[npm-url]: https://badge.fury.io/js/ice-to-bson
[travis-image]: https://travis-ci.org/aikoven/ice-to-bson.svg?branch=master
[travis-url]: https://travis-ci.org/aikoven/ice-to-bson