Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@m1yh3m/random.bytes

m1yh3m60MIT2025.4.0TypeScript support: included

Generate random bytes

random, random-bytes

readme

@m1yh3m/random.bytes

node module

import {generate,hex,base64,ascii,utf8 } from "@m1yh3m/random.bytes";

const randomString = generate().hex();
// randomString contains a random string

const outhex = hex();

License

MIT License

Copyright (c) 2019-2025 Anubhav Saini