fnv1a

    1.0.1 • Public • Published

    view on npm npm module downloads per month Analytics

    fnv1a

    Simple and fast 32 bit FNV-1a hash for node.js based on this.

    Usage

     
    var assert = require('assert'), 
        hash   = require('fnv1a'),
        value  = hash('node.js')
     
    // decimal
     
    assert.equal(value, 3096844302)
     
    // hexadecimal
     
    assert.equal(value.toString(16), 'b896180e')
     
    // string
     
    assert.equal(value.toString(36), '1f7s4cu')
     

    Installation

    With npm:

    npm install --save fnv1a
    

    With git:

    git clone git://github.com/schwarzkopfb/fnv1a.git
    

    License

    MIT license.

    Install

    npm i fnv1a

    DownloadsWeekly Downloads

    11,757

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • schwarzkopfb