From 021ceadb901befd17480da50e7803f614c27cc8b Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 9 Apr 2019 12:39:05 +0700 Subject: [PATCH] Meta tweaks --- index.d.ts | 4 ++-- index.js | 1 + package.json | 3 +-- readme.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index 1cc4889..5b33f20 100644 --- a/index.d.ts +++ b/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 ``` @@ -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; diff --git a/index.js b/index.js index 631d750..634c0e3 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,5 @@ 'use strict'; + module.exports = string => { if (typeof string !== 'string') { throw new TypeError('Expected a string'); diff --git a/package.json b/package.json index 49041a7..1d7e137 100644 --- a/package.json +++ b/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": { @@ -27,7 +27,6 @@ "compact", "repeated", "string", - "str", "trim", "remove", "strip" diff --git a/readme.md b/readme.md index 658d981..f080c6d 100644 --- a/readme.md +++ b/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