@x.render/render-node-utils
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

render-node-utils

NPM version

NPM Downloads

中文文档

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

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

    Package Sidebar

    Install

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

    Weekly Downloads

    43

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    60.6 kB

    Total Files

    40

    Last publish

    Collaborators

    • cubber