1.1.1 • Published 3 months ago

@x.render/render-node-utils v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

render-node-utils

中文文档

Introduce

A library that provides a multitude of utility functions for the node environment.

Usage

npm i @x.render/render-node-utils -S

for example

import { log } from "@x.render/render-node-utils";

or

import log from "@x.render/render-node-utils/lib/log";

Specific functions

NameDescription
buildConfigCompile the typescript file and return the compiled string
checkNodeVersionCompare the current node version with the passed version number
clearConsoleClear the current output of the terminal
dynamicImportDynamically import modules
fileSizeReporterCalculate file size changes
formatWebpackMessagesFormat the output information after webpack compilation
formatWindowsPathFormat operating system file path
getNpmPkgLatestVersionGet the latest version of the specified package
getPathsOfFilesMatchingPatternGet file information of the specified path
loadConfigLoad module.Supports three file types: .json, .js, and .ts
logProvide different styles of information output.Support debug, info, warn, error and success.
prepareURLsProvide the browser to open the link
runTaskTask control process, providing task start, progress and end status display
similarOutput the percentage of similar strings
webpackStatsFormat webpack compiled stats