Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

collapse-white-space

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collapse-white-space - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

history.md

@@ -5,2 +5,7 @@ <!--remark setext-->

1.0.2 / 2016-07-23
==================
* Fix `readme.md` ([`03823ce`](https://github.com/wooorm/collapse-white-space/commit/03823ce))
1.0.1 / 2016-07-23

@@ -7,0 +12,0 @@ ==================

2

package.json
{
"name": "collapse-white-space",
"version": "1.0.1",
"version": "1.0.2",
"description": "Replace multiple white-space characters with a single space",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -49,23 +49,2 @@ # collapse-white-space [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]

### `commaSeparated.stringify(values[, options])`
Compile an array of strings to comma-separated tokens.
Handles empty items at start or end correctly.
Note that it’s not possible to specify initial or final
white-space per value.
###### Parameters
* `values` (`Array.<string>`) — List of tokens;
* `options` (`Object`, optional):
* `padLeft` (`boolean`, default: `true`)
— Whether to pad a space before a token;
* `padRight` (`boolean`, default: `false`)
— Whether to pad a space after a token.
###### Returns
`string` — Comma-separated tokens.
## License

@@ -72,0 +51,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc