Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 9, 2019
1 parent fbb3392 commit 021cead
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
@@ -1,5 +1,5 @@
/**
Remove leading, trailing and repeated whitespace from a string.
Remove leading, trailing, and repeated whitespace from a string.
@example
```
Expand All @@ -9,6 +9,6 @@ condenseWhitespace(' foo bar baz ');
//=> 'foo bar baz'
```
*/
declare function condenseWhitespace(str: string): string;
declare function condenseWhitespace(string: string): string;

export = condenseWhitespace;
1 change: 1 addition & 0 deletions index.js
@@ -1,4 +1,5 @@
'use strict';

module.exports = string => {
if (typeof string !== 'string') {
throw new TypeError('Expected a string');
Expand Down
3 changes: 1 addition & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "condense-whitespace",
"version": "1.0.0",
"description": "Remove leading, trailing and repeated whitespace from a string",
"description": "Remove leading, trailing, and repeated whitespace from a string",
"license": "MIT",
"repository": "sindresorhus/condense-whitespace",
"author": {
Expand All @@ -27,7 +27,6 @@
"compact",
"repeated",
"string",
"str",
"trim",
"remove",
"strip"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
@@ -1,6 +1,6 @@
# condense-whitespace [![Build Status](https://travis-ci.org/sindresorhus/condense-whitespace.svg?branch=master)](https://travis-ci.org/sindresorhus/condense-whitespace)

> Remove leading, trailing and repeated whitespace from a string
> Remove leading, trailing, and repeated whitespace from a string

## Install
Expand Down

0 comments on commit 021cead

Please sign in to comment.