output-line
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published
语言: 中文 English

Output-Line

执行node程序时,控制台中输出console行号

Version dev MIT License

安装

npm install output-line --save

快速开始

/*
┌────────────┬────────────┬────────────┐
│  property  │  default   │    type    │
├────────────┼────────────┼────────────┤
│   methods  │  Console   │   Array    │
│   prefix   │   '🐞'     │   String   │
│ isRelative │   false    │   Boolean  │
└────────────┴────────────┴────────────┘
*/

// 使用默认参数
// require('output-line')()

// 自定义参数
const options = {
  methods: ['debug', 'log', 'warn', 'error'],
  prefix: '🐸',
  isRelative: true
}
require('output-line')(options)

console.log('%s %d', 'age', 18)

console.log({ f: 'foo', b: 'bar' })

Package Sidebar

Install

npm i output-line

Weekly Downloads

66

Version

1.0.1

License

MIT

Unpacked Size

7.25 kB

Total Files

6

Last publish

Collaborators

  • lete114