Save current BZZZ config-ui state before CHORUS branding update
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
		
							
								
								
									
										35
									
								
								install/config-ui/node_modules/eslint/lib/cli-engine/hash.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								install/config-ui/node_modules/eslint/lib/cli-engine/hash.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| /** | ||||
|  * @fileoverview Defining the hashing function in one place. | ||||
|  * @author Michael Ficarra | ||||
|  */ | ||||
|  | ||||
| "use strict"; | ||||
|  | ||||
| //------------------------------------------------------------------------------ | ||||
| // Requirements | ||||
| //------------------------------------------------------------------------------ | ||||
|  | ||||
| const murmur = require("imurmurhash"); | ||||
|  | ||||
| //------------------------------------------------------------------------------ | ||||
| // Helpers | ||||
| //------------------------------------------------------------------------------ | ||||
|  | ||||
| //------------------------------------------------------------------------------ | ||||
| // Private | ||||
| //------------------------------------------------------------------------------ | ||||
|  | ||||
| /** | ||||
|  * hash the given string | ||||
|  * @param {string} str the string to hash | ||||
|  * @returns {string} the hash | ||||
|  */ | ||||
| function hash(str) { | ||||
|     return murmur(str).result().toString(36); | ||||
| } | ||||
|  | ||||
| //------------------------------------------------------------------------------ | ||||
| // Public Interface | ||||
| //------------------------------------------------------------------------------ | ||||
|  | ||||
| module.exports = hash; | ||||
		Reference in New Issue
	
	Block a user
	 anthonyrawlins
					anthonyrawlins