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.1.2 to 0.1.3

.verbrc.md

18

docs/usage.md

@@ -27,3 +27,8 @@ ```js

Example:
```js
wrap(str, {width: 60})
```
### indent

@@ -37,3 +42,8 @@

Example:
```js
wrap(str, {indent: ' '})
```
### newline

@@ -45,2 +55,8 @@

The string to use at the end of each line.
The string to use at the end of each line.
Example:
```js
wrap(str, {newline: '\n\n'})
```

9

index.js

@@ -1,3 +0,8 @@

/**
* An optimized version of http://james.padolsey.com/javascript/wordwrap-for-javascript/
/*!
* word-wrap <https://github.com/jonschlinkert/word-wrap>
*
* Copyright (c) 2014, Jon Schlinkert, contributors.
* Licensed under the MIT License
*
* Adapted from http://james.padolsey.com/javascript/wordwrap-for-javascript/
*/

@@ -4,0 +9,0 @@

{
"name": "word-wrap",
"description": "Wrap words.",
"version": "0.1.2",
"description": "Wrap words to a specified length.",
"version": "0.1.3",
"homepage": "https://github.com/jonschlinkert/word-wrap",

@@ -23,2 +23,3 @@ "author": {

],
"main": "index.js",
"keywords": [

@@ -39,5 +40,2 @@ "word-wrap",

},
"dependencies": {
"longest": "~0.2.1"
},
"devDependencies": {

@@ -44,0 +42,0 @@ "verb": "~0.2.2"

@@ -40,3 +40,8 @@ # word-wrap [![NPM version](https://badge.fury.io/js/word-wrap.png)](http://badge.fury.io/js/word-wrap)

Example:
```js
wrap(str, {width: 60})
```
#### indent

@@ -50,3 +55,8 @@

Example:
```js
wrap(str, {indent: ' '})
```
#### newline

@@ -60,2 +70,8 @@

Example:
```js
wrap(str, {newline: '\n\n'})
```
## Author

@@ -74,2 +90,2 @@

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on April 22, 2014._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 19, 2014._
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