Package Exports
- pconsole
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 (pconsole) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pconsole
Use p() instead of console.log() because you have places to be
Usage
Simple syntax:
const PConsole = require('pconsole')
const p = new PConsole('My Prefix |').getLogger()
p('Message')Verbose usage:
const PConsole = require('pconsole')
const pconsole = new PConsole('My Prefix |')
pconsole.log('message')
pconsole.setPrefix('New Prefix |')
pconsole.log('message')