Socket
Socket
Sign inDemoInstall

word-wrap

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

word-wrap - npm Package Compare versions

Comparing version 0.3.1 to 1.0.0

2

index.js

@@ -26,5 +26,5 @@ /*!

if (options.trim === true) {
res = res.replace(/\s*$/, '');
res = res.replace(/[ \t]*$/gm, '');
}
return res;
};
{
"name": "word-wrap",
"description": "Wrap words to a specified length.",
"version": "0.3.1",
"version": "1.0.0",
"homepage": "https://github.com/jonschlinkert/word-wrap",

@@ -28,2 +28,5 @@ "author": {

},
"devDependencies": {
"should": "^4.3.0"
},
"keywords": [

@@ -42,6 +45,3 @@ "break",

"wrap"
],
"devDependencies": {
"should": "^4.3.0"
}
]
}

@@ -34,5 +34,5 @@ /*!

it('should trim trailing whitespace:', function () {
wrap(str, {trim: true}).should.equal(' A project without documentation is like a project \n that doesn\'t exist. Verb solves this by making it \n dead simple to generate project documentation, \n using simple markdown templates, with zero \n configuration required.');
wrap(str, {trim: true}).should.equal(' A project without documentation is like a project\n that doesn\'t exist. Verb solves this by making it\n dead simple to generate project documentation,\n using simple markdown templates, with zero\n configuration required.');
});
});
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