- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
const uuid = require('uuid');
const param = process.argv[2];
const count = Number(param);
if(typeof count !== 'number' || isNaN(count) || count < 0) {
console.error(`bad number parameter ${param}`);
return;
}
console.log('namespace LotsofClass {');
for(let i = 0; i <= count; i++) {
console.log(`class Class${uuid.v4().replace(/-/g, '')}{}`);
}
console.log('}');
1024-- 05.04.2018 10:41 # +1
smac 24.08.2021 00:46 # 0