- 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).
11 lines
234 B
TypeScript
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();
|