Attaches to the String type a random function which returns a random string for the provided number of bytes and encoding with ascii, base64, hex, latin1 and ucs2 as possible values. By default the number of bytes is 16 and the default encoding is hex.
npm install @dizmo/functions-random --saveconst { random } = require('@dizmo/functions-random');random(16);2fa6651ce3680dd13899156f9550ec61random(16, 'hex');d00e24ae8348004bca2f9c07ba6ae43brandom(16, 'ascii');lZq\x01\x07j\x17:OnlG9u[\x13random(16, 'base64');QbqxfgF3JBiCktUQl+p9lQ==random(16, 'latin1');ؼ\x8D\x9F*>\nØ\x83BÃÑë{\x15Ðrandom(16, 'ucs2');☔戠䰍⧗灺밄䯗晡npm run cleannpm run buildnpm run -- build --no-lint --no-cleannpm run -- build --prepacknpm run -- build --prepack --no-minifynpm run lintnpm run -- lint --fixnpm run testnpm run -- test --no-lint --no-clean --no-buildnpm run covernpm run -- cover --no-lint --no-clean --no-buildnpm run docsnpm publishnpm publish --access=public© 2020 dizmo AG, Switzerland