Skip to content

Commit

Permalink
Refactor prose
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 23, 2020
1 parent f5849d9 commit d212e7f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]

Replace multiple white-space characters with a single space.
Replace multiple whitespace characters with a single space.

## Installation
## Install

[npm][npm-install]:
[npm][]:

```bash
```sh
npm install collapse-white-space
```

## Usage
## Use

```javascript
```js
var collapse = require('collapse-white-space')

collapse('\tfoo \n\tbar \t\r\nbaz') //=> ' foo bar baz'
Expand All @@ -27,7 +27,7 @@ collapse('\tfoo \n\tbar \t\r\nbaz') //=> ' foo bar baz'

### `collapse(value)`

Replace multiple white-space characters in value with a single space.
Replace multiple whitespace characters in value with a single space.

## License

Expand All @@ -51,7 +51,7 @@ Replace multiple white-space characters in value with a single space.

[size]: https://bundlephobia.com/result?p=collapse-white-space

[npm-install]: https://docs.npmjs.com/cli/install
[npm]: https://docs.npmjs.com/cli/install

[license]: license

Expand Down

0 comments on commit d212e7f

Please sign in to comment.