Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chakrit/node-uneval

`uneval` approximation for node.js/v8. Convert objects into code. Do **not** use this unless you know all the things that could possibly go wrong with this. You have been warned -- use at your own risk.
https://github.com/chakrit/node-uneval

Last synced: about 20 hours ago
JSON representation

`uneval` approximation for node.js/v8. Convert objects into code. Do **not** use this unless you know all the things that could possibly go wrong with this. You have been warned -- use at your own risk.

Awesome Lists containing this project

README

        

[![Build
Status](https://travis-ci.org/chakrit/node-uneval.png)](https://travis-ci.org/chakrit/node-uneval)

# node-uneval

Approximation of uneval for node.js/v8. Convert objects into code. Do **not** use this
unless you know all the things that could possibly go wrong with this. You have been
warned -- use at your own risk.

Install with:

```sh
npm i uneval --save
```

Use with

```javascript
var uneval = require('uneval')

uneval({ a: 1 }) == '({a:1})'
```

# LICENSE

Was gonna go with public domain but it does comes with some dangerous downsides, so I'm
converting this to CC instead as of version v0.1.1.

Creative Commons License
This work is licensed
under a Creative Commons
Attribution-ShareAlike 3.0 Unported License
.

# TODO

* Lots more tests!
* Cross-node-version support.