Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

chris-auto-utils

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chris-auto-utils

this is a plug-in for automatically extracting tool classes.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Installation

$ npm i chris-auto-utils -D

插件功能

1. webpack tree-shaking 的思想模块化脚本
2. 监听目录中的模块增、删、改操作,打包到一个出口文件中。

插件优点

1. 开发的时候希望模块化,写到多个文件中,抽象管理。
2. 引用的时候不用分别引用不同文件,只引用同一个出口文件即可。

调用


/** 
 * listen module change
 * @param path {string} 需要监听的目录
 * @param outpath {string} 输出目录
 * @param outfilename {string} 输出文件名
*/

new signUpModule({
    path: "common/utils",
    outpath: "common",
    outfilename: "utilsEntry.js"
})

if you like it,thank you。

License

MIT

Keywords

plugin

FAQs

Package last updated on 11 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts