whatisin

0.2.0 • Public • Published

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 :).

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    3
  • 0.1.3
    0
  • 0.1.2
    0

Package Sidebar

Install

npm i whatisin

Weekly Downloads

3

Version

0.2.0

License

MIT

Last publish

Collaborators

  • hellyna