Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
11
my-app/node_modules/unique-slug/lib/index.js
generated
vendored
Executable file
11
my-app/node_modules/unique-slug/lib/index.js
generated
vendored
Executable file
|
@ -0,0 +1,11 @@
|
|||
'use strict'
|
||||
var MurmurHash3 = require('imurmurhash')
|
||||
|
||||
module.exports = function (uniq) {
|
||||
if (uniq) {
|
||||
var hash = new MurmurHash3(uniq)
|
||||
return ('00000000' + hash.result().toString(16)).slice(-8)
|
||||
} else {
|
||||
return (Math.random().toString(16) + '0000000').slice(2, 10)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue