package
Quickprint variable information
npm install infGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
6.0 kB
Includes dependencies.
JavaScript's quick-print for variable information
npm install --save inf<script src="https://rawgit.com/dawsonbotsford/inf/master/bundle.js"></script>Alternatively, you can install the npm module and reference the bundle within node_modules
<script src="<path to node_modules>/inf/bundle.js"></script>// Remove this require line if you're using the web bundle (it's already bundled as "inf")
const inf = require('inf');
inf('JavaScript');
//=>'Value: JavaScript
//=>Type: string
//=>Length: 10'
inf([1, 2, 3]);
//=>'Value: 1,2,3
//=>Type: array
//=>Length: 3'
inf(new Boolean(true));
//=>'Value: true
//=>Type: boolean'
inf(new Date());
//=>'Value: Fri Mar 11 2016 23:52:58 GMT-0600 (CST)
//=>Type: date;
Type: all types
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:
:zap: Put inf into a console.log for lightning fast debugging. :zap:.
MIT © Dawson Botsford