@neosjs/cli
Version:
Neos(奈欧斯)是一个帮助开发者快速地创建 Vue3 应用并自动配置项目编译的脚手架
1 lines • 365 B
JavaScript
;const chalk=require("chalk"),crypto=require("crypto"),random=async function(a){var b=Math.floor;if(!/^[+]{0,1}(\d+)$/.test(a))return void console.log(`Not a valid length ${chalk.yellow(a)}.`);const c=crypto.randomBytes(+a),d=c.toString("hex"),e=b(Math.random()*(d.length/2));return console.log(d.slice(e,e+ +a)),d.slice(e,e+ +a)};module.exports=random;