Package Exports
- preview
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (preview) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Preview
Console logging, inspecting and debugging tool.
Instead of having console.log and util.inspect all over your code during development, use preview.
Installation
From your terminal, requires node.js.
npm install preview
Module
require('preview')(<namespace>);
preview(<namespace>, <text>, <object>);
Example
var preview = require('preview')('app1');
var foo = {bar: 8211, hello: 'world', list: [1,2,3]}; // some object to inspect.
preview('foo');
preview('foo object', foo);
preview('app2', 'foo again', foo);
preview('foo foo from app1');
To run preview, use the --preview argument:
node example.js --preview
License
Choose either: MIT or Apache 2.0.