1.1.1 • Published 2 years 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 -Sfor 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
2 years ago
1.1.0
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.0.0-beta.4
2 years ago
1.0.0-beta.3
2 years ago
1.0.0-beta.2
2 years ago
1.0.0-beta.1
2 years ago