1.1.1 • Published 3 months ago
@x.render/render-node-utils v1.1.1
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
Name | Description |
---|---|
buildConfig | Compile the typescript file and return the compiled string |
checkNodeVersion | Compare the current node version with the passed version number |
clearConsole | Clear the current output of the terminal |
dynamicImport | Dynamically import modules |
fileSizeReporter | Calculate file size changes |
formatWebpackMessages | Format the output information after webpack compilation |
formatWindowsPath | Format operating system file path |
getNpmPkgLatestVersion | Get the latest version of the specified package |
getPathsOfFilesMatchingPattern | Get file information of the specified path |
loadConfig | Load module.Supports three file types: .json , .js , and .ts |
log | Provide different styles of information output.Support debug , info , warn , error and success . |
prepareURLs | Provide the browser to open the link |
runTask | Task control process, providing task start, progress and end status display |
similar | Output the percentage of similar strings |
webpackStats | Format webpack compiled stats |
1.1.1
3 months ago
1.1.0
3 months ago
1.0.5
3 months ago
1.0.4
3 months ago
1.0.3
5 months ago
1.0.2
5 months ago
1.0.1
5 months ago
1.0.0
5 months ago
1.0.0-beta.4
5 months ago
1.0.0-beta.3
5 months ago
1.0.0-beta.2
5 months ago
1.0.0-beta.1
5 months ago