Comparing version 0.1.2 to 0.1.3
@@ -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'}) | ||
``` |
@@ -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._ |
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
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
6588
0
10
24
87
- Removedlongest@~0.2.1
- Removedlongest@0.2.1(transitive)