1.0.0 • Published 6 years ago

consolinumber v1.0.0

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
6 years ago

Consolinumber

Print file name and line number before every conosle.log.

Installation

npm install --save consolinumber

Usage

// c:/test/index.js

require("consolinumber")

console.log("test") // test/index.js:3> test

Customization

require("./consolinumber").customize({
  color: "blue",
  pathLevelSlice: 3
});

Availalbe settings

namedescriptiondefault
colortext color of log's prefix"gray"
pathLevelSlicenumber of items in path to show (0: show all path)2
1.0.0

6 years ago

0.0.1

7 years ago