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

wrap-ansi

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wrap-ansi - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

9

index.js

@@ -95,3 +95,3 @@ 'use strict';

// 'soft' allows long words to expand past the column length.
module.exports = function (str, cols, opts) {
function exec(str, cols, opts) {
var options = opts || {};

@@ -156,2 +156,9 @@

return ret;
}
// for each line break, invoke the method separately.
module.exports = function (str, cols, opts) {
return String(str).split('\n').map(function (substr) {
return exec(substr, cols, opts);
}).join('\n');
};

2

package.json
{
"name": "wrap-ansi",
"version": "1.0.0",
"version": "2.0.0",
"description": "Wordwrap a string with ANSI escape codes",

@@ -5,0 +5,0 @@ "license": "MIT",

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