@types/wrap-ansi
Advanced tools
Comparing version 8.0.2 to 8.1.0
{ | ||
"name": "@types/wrap-ansi", | ||
"version": "8.0.2", | ||
"description": "TypeScript definitions for wrap-ansi", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wrap-ansi", | ||
"version": "8.1.0", | ||
"description": "Stub TypeScript definitions entry for wrap-ansi, which provides its own types definitions", | ||
"main": "", | ||
"scripts": {}, | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "Klaus Reimer", | ||
"githubUsername": "kayahr", | ||
"url": "https://github.com/kayahr" | ||
}, | ||
{ | ||
"name": "Piotr Błażejewicz", | ||
"githubUsername": "peterblazejewicz", | ||
"url": "https://github.com/peterblazejewicz" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/wrap-ansi" | ||
"dependencies": { | ||
"wrap-ansi": "*" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "98dfdc05d5965f1945c8f71dc9d479801c69424f9e789a1e9f597002ded98533", | ||
"typeScriptVersion": "4.5" | ||
"deprecated": "This is a stub types definition. wrap-ansi provides its own type definitions, so you do not need this installed." | ||
} |
@@ -1,41 +0,3 @@ | ||
# Installation | ||
> `npm install --save @types/wrap-ansi` | ||
This is a stub types definition for @types/wrap-ansi (https://github.com/chalk/wrap-ansi#readme). | ||
# Summary | ||
This package contains type definitions for wrap-ansi (https://www.npmjs.com/package/wrap-ansi). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wrap-ansi. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wrap-ansi/index.d.ts) | ||
````ts | ||
/** | ||
* Wrap words to the specified column width. | ||
* | ||
* @param input String with ANSI escape codes. Like one styled by chalk. | ||
* @param columns Number of columns to wrap the text to. | ||
* @param options By default the wrap is soft, meaning long words may extend past the column width. Setting | ||
* this to true will make it hard wrap at the column width. | ||
*/ | ||
declare function wrapAnsi(input: string, columns: number, options?: wrapAnsi.Options): string; | ||
declare namespace wrapAnsi { | ||
interface Options { | ||
/** @default false */ | ||
hard?: boolean | undefined; | ||
/** @default true */ | ||
trim?: boolean | undefined; | ||
/** @default true */ | ||
wordWrap?: boolean | undefined; | ||
} | ||
} | ||
export default wrapAnsi; | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 18 Oct 2023 18:04:04 GMT | ||
* Dependencies: none | ||
# Credits | ||
These definitions were written by [Klaus Reimer](https://github.com/kayahr), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). | ||
wrap-ansi provides its own type definitions, so you don't need @types/wrap-ansi installed! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1745
1
3
0
2
1
1
3
1
1
+ Addedwrap-ansi@*
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedemoji-regex@10.4.0(transitive)
+ Addedget-east-asian-width@1.3.0(transitive)
+ Addedstring-width@7.2.0(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedwrap-ansi@9.0.0(transitive)