Common modules of npm
This time I will bring you the commonly used modules of npm. What are the precautions when using npm commonly used modules. The following is a practical case, let’s take a look.
Build/Package Management
browserify grunt/grunt-cli gulp/gulp-util bower yo/yeomen-generator css/js/编译 coffee-script less node-sass uglify-js clean-css uglifycss stylus marked : markdown编译为html xml2js : xml编译为js对象或json js-yaml : 解析yaml jsdom : 对dom操作 框架 express connect 测试 karma mocha chai 工具函数 underscore/underscore.string lodash moment node-uuid mime : 获取mime信息 semver : semver版本号处理 minimatch : 正则匹配 xtend : extend方法 cheerio : jquery的轻量级版本 jquery word-wrap shelljs : node中提供unix shell命令支持 pkginfo : 读取模块的package.json validator : string validate iconv-lite : 编码clone : clone 对象或数组 nib : stylus mixin 及工具 inherits : prototype扩展,相比原生浏览器支持良好 cjson : json loader escodegen : js生成器 esprima : js解析器 md5 : 生成md5 matchdep : 获取模块依赖,package.json http/网络 request socket.io ws : websocket,类似socket.io statsd : 获取udp metrics body-parser : 内容格式的中间件,结合express使用 morgan : http request的logger中间件 oauth http-proxy : 代理服务器 urlrouter : connect路由中间件 tiny-lr : live reload server及中间件 connect-url-rewrite : 正则rewrite url中间件 异步 async q : promises/A+ when bluebird when es6-promise 流/stream event-stream : 对stream的操作 through/through2 : 对stream的构造和操作 concat-stream : 对stream进行concat操作 tar : 压缩 block-stream : 指定block大小的流 文件操作 mkdirp glob : 正则匹配文件 fs-extra : 复制、建目录、删除等fs扩展操作 wrench : 递归的文件操作 rimraf : rm -rf操作 watchr : 文件改动watching gaze : 同watchr graceful-fs : fs封装 ncp : 异步cp文件 temp : 临时文件生成及操作 模板引擎 handlebars jade ejs mustache velocity/velocityjs 数据库 redis mongoose mysql pg : postgreSql 命令行辅助 commander : 菜单,命令及helpoptimist : 命令行解析,同commander minimist : 更简单的参数处理 yargs : 同minimist prompt : 命令行交互prompt inquirer : 命令行交互api,prompt、questions等等 debug winston : log扩展封装 log4js : 同winston colors : console颜色 chalk : 同colors cli-table forever : 一直执行脚本 node管理 pm2 : node应用进程管理及状态监测 n : node版本管理
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!
Related reading:
How to filter out false, null, 0, "", undefined, and NaN values in a js array
WOW.js that makes the page move
How to solve the BUG that the textarea in IE11 does not wrap lines
How to customize user settings in WebStorm
The above is the detailed content of Common modules of npm. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics
![WLAN expansion module has stopped [fix]](https://img.php.cn/upload/article/000/465/014/170832352052603.gif?x-oss-process=image/resize,m_fill,h_207,w_330)
If there is a problem with the WLAN expansion module on your Windows computer, it may cause you to be disconnected from the Internet. This situation is often frustrating, but fortunately, this article provides some simple suggestions that can help you solve this problem and get your wireless connection working properly again. Fix WLAN Extensibility Module Has Stopped If the WLAN Extensibility Module has stopped working on your Windows computer, follow these suggestions to fix it: Run the Network and Internet Troubleshooter to disable and re-enable wireless network connections Restart the WLAN Autoconfiguration Service Modify Power Options Modify Advanced Power Settings Reinstall Network Adapter Driver Run Some Network Commands Now, let’s look at it in detail

This article details methods to resolve event ID10000, which indicates that the Wireless LAN expansion module cannot start. This error may appear in the event log of Windows 11/10 PC. The WLAN extensibility module is a component of Windows that allows independent hardware vendors (IHVs) and independent software vendors (ISVs) to provide users with customized wireless network features and functionality. It extends the capabilities of native Windows network components by adding Windows default functionality. The WLAN extensibility module is started as part of initialization when the operating system loads network components. If the Wireless LAN Expansion Module encounters a problem and cannot start, you may see an error message in the event viewer log.

1. Introduction to the sys module The os module introduced earlier is mainly for the operating system, while the sys module in this article is mainly for the Python interpreter. The sys module is a module that comes with Python. It is an interface for interacting with the Python interpreter. The sys module provides many functions and variables to deal with different parts of the Python runtime environment. 2. Commonly used methods of the sys module. You can check which methods are included in the sys module through the dir() method: import sys print(dir(sys))1.sys.argv-Get the command line parameters sys.argv is used to implement the command from outside the program. The program is passed parameters and it is able to obtain the command line parameter column

Hello, my name is somenzz, you can call me Brother Zheng. Python's import is very intuitive, but even so, sometimes you will find that even though the package is there, we will still encounter ModuleNotFoundError. Obviously the relative path is very correct, but the error ImportError:attemptedrelativeimportwithnoknownparentpackage imports a module in the same directory and a different one. The modules of the directory are completely different. This article helps you easily handle the import by analyzing some problems often encountered when using import. Based on this, you can easily create attributes.

Preface This article continues to introduce the Python collection module. This time it mainly introduces the named tuples in it, that is, the use of namedtuple. Without further ado, let’s get started – remember to like, follow and forward~ ^_^Creating named tuples The named tuple class namedTuples in the Python collection gives meaning to each position in the tuple and enhances the readability of the code Sexual and descriptive. They can be used anywhere regular tuples are used, and add the ability to access fields by name rather than positional index. It comes from the Python built-in module collections. The general syntax used is: import collections XxNamedT

Explore the Canvas framework: To understand what are the commonly used Canvas frameworks, specific code examples are required. Introduction: Canvas is a drawing API provided in HTML5, through which we can achieve rich graphics and animation effects. In order to improve the efficiency and convenience of drawing, many developers have developed different Canvas frameworks. This article will introduce some commonly used Canvas frameworks and provide specific code examples to help readers gain a deeper understanding of how to use these frameworks. 1. EaselJS framework Ea

All data are automatically assigned a "DOB" (Date of Birth) at the beginning. Therefore, it is inevitable to encounter date and time data when processing data at some point. This tutorial will take you through the datetime module in Python and using some peripheral libraries such as pandas and pytz. In Python, anything related to date and time is handled by the datetime module, which further divides the module into 5 different classes. Classes are simply data types that correspond to objects. The following figure summarizes the 5 datetime classes in Python along with commonly used attributes and examples. 3 useful snippets 1. Convert string to datetime format, maybe using datet

The working principle of Ansible can be understood from the above figure: the management end supports three methods of local, ssh, and zeromq to connect to the managed end. The default is to use the ssh-based connection. This part corresponds to the connection module in the above architecture diagram; you can press the application type HostInventory (host list) classification is carried out in other ways. The management node implements corresponding operations through various modules. A single module and batch execution of a single command can be called ad-hoc; the management node can implement a collection of multiple tasks through playbooks. Implement a type of functions, such as installation and deployment of web services, batch backup of database servers, etc. We can simply understand playbooks as, the system passes
