Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/wrap-ansi

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/wrap-ansi - npm Package Compare versions

Comparing version 8.0.2 to 8.1.0

32

wrap-ansi/package.json
{
"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!
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc