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

one-spaces

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

one-spaces - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

.DS_Store

15

dist/index.js
/**
* @author TroyTae
* @version 1.0.4
* @version 1.1.0
* @name one-spaces

@@ -17,10 +17,7 @@ */

if (arg = args[index]) {
if (className) {
className += ' ';
}
if (Array.isArray(arg)) {
className += OneSpaces.apply(null, arg);
} else {
className += arg;
}
className += (
Array.isArray(arg) ?
OneSpaces.apply(0, arg) :
arg + ' '
);
}

@@ -27,0 +24,0 @@ }

2

dist/one-spaces.js

@@ -1,1 +0,1 @@

var OneSpaces=function r(){var a,n=arguments,e=n.length,l="";while(e--)(a=n[e])&&(l&&(l+=" "),Array.isArray(a)?l+=r.apply(null,a):l+=a);return l};
var OneSpaces=function r(){var a,e=arguments,n=e.length,i="";while(n--)(a=e[n])&&(i+=Array.isArray(a)?r.apply(0,a):a+" ");return i};
{
"name": "one-spaces",
"version": "1.0.4",
"version": "1.1.0",
"description": "A tiny module for making className 😎",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

# One Spaces
A tiny(146B) module for making css className 😎
A tiny(132B) module for making className 😎

@@ -23,3 +23,3 @@ ## Installation

```javascript
OneSpaces('cls1', 'cls2', 'cls3') === 'cls3 cls2 cls1';
OneSpaces('cls1', 'cls2', 'cls3') === 'cls3 cls2 cls1 '
```

@@ -30,3 +30,3 @@

```javascript
OneSpaces(['cls1', 'cls2'], ['cls3']) === 'cls3 cls2 cls1';
OneSpaces(['cls1', 'cls2'], ['cls3']) === 'cls3 cls2 cls1 '
```

@@ -37,3 +37,3 @@

```javascript
OneSpaces('cls1', null, 'cls2', false && 'none', true && 'cls3') === 'cls3 cls2 cls1';
OneSpaces('cls1', null, 'cls2', false && 'none', true && 'cls3') === 'cls3 cls2 cls1 '
```

@@ -44,3 +44,3 @@

```javascript
OneSpaces(['cls1', 'cls2'], null, 'cls3') === 'cls3 cls2 cls1';
OneSpaces(['cls1', 'cls2'], null, 'cls3') === 'cls3 cls2 cls1 '
```

@@ -47,0 +47,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