All Projects → kevva → mouse-hash

kevva / mouse-hash

Licence: MIT license
Generate a hash by moving your mouse

Programming Languages

javascript
184084 projects - #8 most used programming language

mouse-hash

Generate a hash by moving your mouse (macOS and Windows)

Install

$ npm install --save mouse-hash

Usage

const mouseHash = require('mouse-hash');

mouseHash().then(hash => {
	console.log(hash);
	//=> 3bac6a60a8e9d1fe5ad5457562bb16d6226f952f01f3
});

API

mouseHash([options])

Returns a promise that resolves to the generated hash in sha512.

options

length

Type: number
Default: 500

Length of the array of mouse coordinates.

CLI

$ npm install --global mouse-hash
$ mouse-hash --help

  Usage
    $ mouse-hash

  Options
    --length  250. [Default: 500]

License

MIT © Kevin Martensson

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].