Git Product home page Git Product logo

node-console-link's Introduction

node输出函数链路

A library of supports console function link.

前言:

  1. 在平常开发的时候,老是要手动输入console,并在打印console的时候还要JSON转换,很麻烦。
  2. 在别人开发代码后,在提测阶段是我们进行修改bug,这时候就要去看项目代码,很耗时。

解决方案:

在某个文件或者某个目录的所有文件下的每个函数头部自动添加console.log,加上打印值,第一个为打印函数的名称,参照vue-devtool的样式,显得醒目。从第二个值开始是参数,对象会转为JSON对象

使用说明

// 通过npm安装
npm i -g node-console-link

使用

// 支持文件:vue, js, ts, jsx, tsx
// 终端
$ pr-link ./index.vue
$ pr-link ./src

node-console-link's People

Contributors

ethan66 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.