esdir

0.1.1 • Public • Published

esdir: object inspection tool for ES

esdir is a very small object inspection tool like dir() in Python. It is wrapper over Object.getOwnPropertyNames() ES5 API, and shows what properties are available for the object you passed.

var dir = require('esdir');
 
dir(''); // => [ 'length', 'constructor', 'valueOf', 'toString', 'charAt', ...]
dir(function(){}); // => [ 'length', 'name', 'arguments', ... ]
dir(10); // => [ 'toFixed', 'toExponential', 'toPrecision', ... ]

Notes

This project is built with Babel. If you want to use ES2015 source, require/import like require('esdir/src').

Dependents (0)

Package Sidebar

Install

npm i esdir

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • sairion