inf
JavaScript's quick-print for variable information
Linux & OSX | Windows |
---|---|
Install
Node
npm install --save inf
Web
Alternatively, you can install the npm module and reference the bundle within node_modules
// Remove this require line if you're using the web bundle (it's already bundled as "inf")const inf = ; ;//=>'Value: JavaScript//=>Type: string//=>Length: 10' ;//=>'Value: 1,2,3//=>Type: array//=>Length: 3' ;//=>'Value: true//=>Type: boolean' ;//=>'Value: Fri Mar 11 2016 23:52:58 GMT-0600 (CST)//=>Type: date;
API
inf(target)
target
Type: all types
returns
Type: string
The alternative is to console.log
your value. inf
gives you so much more useful info about any type of variable!
info includes:
- Value
- Type (using to-type)
- Length (if applicable)
⚡️ Put inf
into a console.log
for lightning fast debugging. ⚡️.
License
MIT © Dawson Botsford