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

class-prefixer

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-prefixer - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

index.js

@@ -27,3 +27,3 @@ var classNames = require('classnames');

};
cls.prefix = function () {
cls.prefix = cls.toString = function () {
return prefix;

@@ -30,0 +30,0 @@ };

{
"name": "class-prefixer",
"version": "0.0.1",
"version": "0.0.2",
"description": "clsssName prefixer",

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

@@ -9,2 +9,3 @@ require('should');

cls().should.eql('pre');
;('' + cls).should.eql('pre');
});

@@ -21,4 +22,4 @@ it('main class', function() {

var cls = className('pre');
cls(null, 'b c').should.eql('b c')
cls(null, ' b c ').should.eql('b c')
cls(null, 'b c').should.eql('b c');
cls(null, ' b c ').should.eql('b c');
cls('a', ' b c').should.eql('pre-a b c');

@@ -28,2 +29,8 @@ cls('a b', ' b c').should.eql('pre-a pre-b b c');

});
it('prefix add', function() {
var cls = className('pre');
var cls2 = cls.add('next');
cls2('a').should.eql('pre-next-a');
cls('a').should.eql('pre-a');
})
});
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