Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/ndarray-json
Serialize/deserialize ndarrays to and from JSON
https://github.com/hughsk/ndarray-json
Last synced: 8 days ago
JSON representation
Serialize/deserialize ndarrays to and from JSON
- Host: GitHub
- URL: https://github.com/hughsk/ndarray-json
- Owner: hughsk
- License: other
- Created: 2013-07-18T13:07:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-19T04:11:52.000Z (about 11 years ago)
- Last Synced: 2024-10-17T16:41:27.029Z (22 days ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ndarray-json [![experimental](https://rawgithub.com/hughsk/stability-badges/master/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #
Serialize/deserialize [ndarrays](http://github.com/mikolalysenko/ndarray) to
and from JSON. The array data itself is stored in base64 format, with some
additional metadata for shape/stride/etc.## Installation ##
``` bash
npm install ndarray-json
```## Usage ##
### `require('ndarray-json').stringify(ndarray)` ###
Stringifies an ndarray into JSON.
### `require('ndarray-json').parse(ndarray)` ###
Takes a stringified ndarray and returns a new copy.