# node-chash **Repository Path**: mirrors_soldair/node-chash ## Basic Information - **Project Name**: node-chash - **Description**: hash a value to a consistent number within a specified range. in goes key out goes number that's it. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-06-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://secure.travis-ci.org/soldair/node-chash.png)](http://travis-ci.org/soldair/node-chash) # node-chash hash a value to a consistent number within a specified range. in goes key out goes number that's it. ## example ```js var chash = require('chash'); var colors = ['red','blue','green','purple'] , bobscolor = chash('bob',colors.length) , ryanscolor = chash('ryan',colors.length) , suescolor = chash('sue',colors.length) ; console.log('bob will always be',colors[bobscolor]); console.log('ryan will always be',colors[ryanscolor]); console.log('sue will always be',colors[suescolor]); ``` ## notes random distribution ?_?