case-uniquify
Given a name, make a unique name even on case-folding filesystems.
Last updated 5 years ago by smikes .
MIT · Original npm · Tarball · package.json
$ cnpm install case-uniquify 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |