New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

classname-lodash

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

classname-lodash

classname rebuilt using lodash

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

classnames-lodash

classnames, rewritten using lodash.

classnames is still being maintained. This is not a replacement for classnames.

classnames is a fantastic library. With no dependencies, it efficiently produces a classlist from a slew of parameter types and combinations. This is a personal exercise in producing, testing, profiling, and documenting an open-source software package.

Installation

npm install classnames-lodash

Usage

import classnames from 'classnames-lodash'

classnames('foo', undefined, 'bar', null) // => 'foo bar'

Todo

  • Create Yarn package
  • Create Bower package
  • Create script to expose classnames() to the global scope
  • Support object parameter type with class names as keys, like this:
    classnames({
        foo: true,
        bar: false
    }) // => 'foo'
    
  • Implement, test, and profile classnames.bind()
  • Create alternative that does not sort
  • Create alternative that does not dedupe
  • Create alternative that does not sort or dedupe

Development

If you're looking to work on this project, please use the following npm scripts to run benchmarks and tests.

CommandEffect
lintLints all source code in the project and displays warnings and errors to the console.
fixLints all source code and fixes fixable errors in place.
testRuns all tests for this project.
test-watchRuns all tests for this project, then watches for file changes, repeat.
benchmarkRuns benchmarks for this project and displays results on the console.

Keywords

FAQs

Package last updated on 25 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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