1.1.3 • Published 7 years ago

string-hash v1.1.3

Weekly downloads
2,196,080
License
CC0-1.0
Repository
github
Last release
7 years ago

string-hash

A fast string hashing function for Node.JS. The particular algorithm is quite similar to djb2, by Dan Bernstein and available here. Differences include iterating over the string backwards (as that is faster in JavaScript) and using the XOR operator instead of the addition operator (as described at that page and because it obviates the need for modular arithmetic in JavaScript).

The hashing function returns a number between 0 and 4294967295 (inclusive).

Thanks to cscott for reminding us how integers work in JavaScript.

License

To the extend possible by law, The Dark Sky Company, LLC has waived all copyright and related or neighboring rights to this library.

postcss-modules@corabank/ibanking@grafana/datavuedragdropuploadimagesnpm-najvece-sranje-sapperwebapp-user@likethemammal/react-primitives@likethemammal/react-primitives_react-native-web_latestqcauditformbuilderqcauditformbuilderjs@prem911/formiojsaerolito-nextsms-fluidcomponents-sass-importer@fela-next/fela-monolithiccode_hashauditformbuilderjssnova-formjs-oldsnova-formjs@xest/host@xest/react@x/socket.xest@deathsy/rn-credit-cardxest.reactxsocket.xestcloud-archive-s3pictogrifycrmcheap-formiojsxest.host@tuist/tree@pawi/treesvazzlewenke-browserify-csswenke-cssifywenke-cssify-watchify@apemesh/cdiffiles-jsdoc-annotatorreact-native-web-stylesloungebuddy-kafka@olivervorasai/sliderasterjscogoportutilsyaml2resume@iacoshoria/datastore@infinitebrahmanuniverse/nolb-string-@saaspe/componentsexpand-react-bridge@everything-registry/sub-chunk-2836super-admin-themep149-tabletest-popupspeek-word@essential-projects/data_model@dogger/clifinomial-formiojsex-ikon-components-libraryexpress-vue-renderer@cezaraugusto/venuszzzxxxyyy321123formiojsformiojs-arformiojs-changeformiojs-colfuturoformiojs-ekartonformiojs-emilyemrformiojs-ennformiojs-extformiojs-gpformiojs-kodiakformiojs-llqformiojs-sivaformiojs-tmpformio-apc-custom-libformio-changeformio-pim-custom-libformio-samformiochangformiojs-wrikeformiojs_jsonschemaformiojsmodformiollqfastboot-fs-cacheexpletivefis3-hook-css-modulesfela-monolithicfis3-preprocessor-css-modulesexperimental-formsgarnish-uifront-doorfunction-cachekarma-html-live-reporterintegrated-uigit-slicegraffiti-mongoose-hotfixgradient-avatar-v2gradient-avatarhashsethash-avatarhbr-sapperhash-loaderhono-lite
1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

11 years ago