Showing 1-20 of 1,327,212 packages
Error comparison and information related utility for node and the browser
A module that, given an error string, returns a response message
| 属性 |说明 | 类型| 必须配置 | 默认值| | ------------ |-------|--------| -----|-----| | status | 状态描述(可选值包括 'normal' 'disabled' 'error') | string | normal | | value | 已选值 | {Name:string,Id:number,Email:string,AvatarColor:string,DepartmentId:number}[] | no | []|
Easily-extendable error for use with ES6 classes
Make your own error types!
Get the visual width of a string - the number of columns required to display it
Escape RegExp special characters
Indent each line in a string
A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.
A small utility for creating warnings and emitting them.
Wordwrap a string with ANSI escape codes
detect and report syntax errors in source code strings
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Modify strings, generate sourcemaps
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Slice a string with ANSI escape codes
Matches strings against configurable strings, globs, regular expressions, and/or functions
Strip leading whitespace from each line in a string
Repeat the given string n times. Fastest implementation for repeating a string.
Strip redundant indentation and indent the string