random-hex Installing npm i random-hex-gen Code example let hex = require('random-hex-gen') console.log(hex())