$ npm install randhex
Get random hexadecimal strings of preferable length.
#To install:
npm install randhex
#Example usage:
var randhex = require('randhex'); console.log ( randhex(7) ); // '3d828ee' console.log ( randhex() ); // 'c72993' Deafults to 6