Coder Social home page Coder Social logo

i_love_this_plugin's Introduction

I love this plugin

我用过的一些好用/常用的插件

通用:

  1. ora

    用来在控制台显示一个类似于loandig循环转圈的效果

     const ora = require('ora');
     const spinner = ora('Loading unicorns').start();
     setTimeout(() => {
     	spinner.color = 'yellow';
     	spinner.text = 'Loading rainbows';
     }, 1000);
    
  2. glob

    允许使用在shell中使用的patterns如* ? [...]等进行文件匹配

     var glob = require("glob")
     // options is optional
     glob("**/*.js", options, function (er, files) {
       // files is an array of filenames.
       // If the `nonull` option is set, and nothing
       // was found, then files is ["**/*.js"]
       // er is an error object or null.
     })
    
  3. colors

    用来在控制台输出不同颜色不同背景的字体,其分String原型入侵模式和非入侵模式调用。

    原型入侵式:

     console.log('i like cake and pies'.underline.red)
    

    原型非入侵式:

     console.log(colors.red.underline('i like cake and pies'))
    
  4. dev-cert-authority

    用来在本地开发过程中使用https调试,尤其是当接口或者数据请求地址为https时尤其有用。

Webpack(只列出非官方插件)

  1. progress-bar-webpack-plugin

    一个进度条插件,用来显示webpack打包任务进度,其中的options与node-progress插件一致,配合colors插件使用效果更佳

     new ProgressBarPlugin({
       format: '  build [:bar] ' + chalk.green.bold(':percent') + ' (:elapsed seconds)',
       clear: false
     })
    
  2. webpack-merge

    一个合并配置插件,类似于jQuery的$.extend()

  3. clean-webpack-plugin

    一个用来打包之前清空目录的插件,需要清空的目录可以以数组的形式传参。

i_love_this_plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.