1. output-line
执行node程序时,控制台中输出console行号 | When executing a node program, the console outputs the console line number
output-line
Package: output-line
Created by: Lete114
Last modified: Thu, 12 May 2022 09:38:55 GMT
Version: 1.0.1
License: MIT
Downloads: 369
Repository: https://github.com/Lete114/Output-Line

Install

npm install output-line
yarn add output-line
语言: 中文 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' })

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin