Files
the-bias-times/scripts/generate-admin-hash.ts
hermes 1b23f57d6c chore: add diagnostic and seeding scripts
- Add script to generate bcrypt admin password hash.
- Add script to seed sample articles for local development.
- Add Kimi/Moonshot API diagnostic scripts (SDK and direct curl).
2026-06-17 04:34:35 +00:00

11 lines
234 B
TypeScript

import bcrypt from 'bcryptjs';
async function main() {
const password = process.argv[2] || 'admin';
const hash = await bcrypt.hash(password, 10);
console.log(`Password: ${password}`);
console.log(`Hash: ${hash}`);
}
main();