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: 3 months 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.
- Host: GitHub
- URL: https://github.com/chakrit/node-uneval
- Owner: chakrit
- Created: 2010-04-04T17:51:33.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2013-04-30T06:30:10.000Z (about 12 years ago)
- Last Synced: 2025-04-11T06:14:29.287Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 127 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[](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.
This work is licensed
under a Creative Commons
Attribution-ShareAlike 3.0 Unported License.# TODO
* Lots more tests!
* Cross-node-version support.