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

case-uniquify

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

case-uniquify

Given a name, make a unique name even on case-folding filesystems.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

case-uniquify

Given a name, make a unique name even on case-folding filesystems.

If the name is all lower-case, return it unchanged.

If the name contains upper-case characters, append "_xxxxxxxx" where the x's are the first 8 characters of the SHA-1 hash of the name.

USAGE

var cu = require('case-uniquify')
console.log(cu('jsonstream'))
// output: jsonstream

console.log(cu('JSONStream'))
// output: JSONStream_50850eed

LICENSE

MIT

FAQs

Package last updated on 16 May 2015

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