0.2.0 • Published 9 years ago

whatisin v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

whatIsIn.js

A minimal function to return a string of the recursive representation of an object.

Installation

npm install whatisin

Usage

On servers(node), you can just require to use the function.

var whatIsIn = require('whatisin');
console.log(whatIsIn(someVeryComplicatedObject));

On web browsers, including whatIsIn.js should add it to the global window object (untested).

<script src="/path/to/whatIsIn.js"></script>
<script>
alert(whatIsIn(someVeryComplicatedObject));
</script>

Caveats

For now, this function does not support detecting cyclic references. Coming soon :).

0.2.0

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago