collapse-white-space
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -5,5 +5,5 @@ 'use strict' | ||
/* collapse(' \t\nbar \nbaz\t'); // ' bar baz ' */ | ||
// `collapse(' \t\nbar \nbaz\t') // ' bar baz '` | ||
function collapse(value) { | ||
return String(value).replace(/\s+/g, ' ') | ||
} |
{ | ||
"name": "collapse-white-space", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Replace multiple white-space characters with a single space", | ||
@@ -13,5 +13,5 @@ "license": "MIT", | ||
"bugs": "https://github.com/wooorm/collapse-white-space/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)" | ||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" | ||
], | ||
@@ -24,13 +24,14 @@ "files": [ | ||
"browserify": "^16.0.0", | ||
"esmangle": "^1.0.1", | ||
"nyc": "^11.0.0", | ||
"remark-cli": "^5.0.0", | ||
"nyc": "^14.0.0", | ||
"prettier": "^1.12.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
"tape": "^4.0.0", | ||
"xo": "^0.20.0" | ||
"tinyify": "^2.5.0", | ||
"xo": "^0.24.0" | ||
}, | ||
"scripts": { | ||
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix", | ||
"build-bundle": "browserify index.js --bare -s collapseWhiteSpace > collapse-white-space.js", | ||
"build-mangle": "esmangle collapse-white-space.js > collapse-white-space.min.js", | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"build-bundle": "browserify . -s collapseWhiteSpace -o collapse-white-space.js", | ||
"build-mangle": "browserify . -s collapseWhiteSpace -p tinyify -o collapse-white-space.min.js", | ||
"build": "npm run build-bundle && npm run build-mangle", | ||
@@ -52,7 +53,2 @@ "test-api": "node test", | ||
"esnext": false, | ||
"rules": { | ||
"capitalized-comments": "off", | ||
"no-var": "off", | ||
"prefer-arrow-callback": "off" | ||
}, | ||
"ignores": [ | ||
@@ -59,0 +55,0 @@ "collapse-white-space.js" |
@@ -1,3 +0,8 @@ | ||
# collapse-white-space [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
# collapse-white-space | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
[![Size][size-badge]][size] | ||
Replace multiple white-space characters with a single space. | ||
@@ -33,14 +38,22 @@ | ||
[travis-badge]: https://img.shields.io/travis/wooorm/collapse-white-space.svg | ||
[build-badge]: https://img.shields.io/travis/wooorm/collapse-white-space.svg | ||
[travis]: https://travis-ci.org/wooorm/collapse-white-space | ||
[build]: https://travis-ci.org/wooorm/collapse-white-space | ||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/collapse-white-space.svg | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/collapse-white-space.svg | ||
[codecov]: https://codecov.io/github/wooorm/collapse-white-space | ||
[coverage]: https://codecov.io/github/wooorm/collapse-white-space | ||
[downloads-badge]: https://img.shields.io/npm/dm/collapse-white-space.svg | ||
[downloads]: https://www.npmjs.com/package/collapse-white-space | ||
[size-badge]: https://img.shields.io/bundlephobia/minzip/collapse-white-space.svg | ||
[size]: https://bundlephobia.com/result?p=collapse-white-space | ||
[npm-install]: https://docs.npmjs.com/cli/install | ||
[license]: LICENSE | ||
[license]: license | ||
[author]: http://wooorm.com | ||
[author]: https://wooorm.com |
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
4309
59
8