chore: add CONTRIBUTING.md for project guidelines and enhance README with author follow section

This commit is contained in:
Nexmoe
2025-10-24 19:22:37 +08:00
parent 8ad41eebe2
commit 4dfac6bb34
18 changed files with 808 additions and 580 deletions

View File

@@ -0,0 +1,28 @@
/**
* 设置控制台编码为 UTF-8解决中文乱码问题
* 这个脚本在 Windows 上设置控制台代码页为 UTF-8
*/
const { exec } = require('node:child_process')
const os = require('node:os')
if (os.platform() === 'win32') {
console.log('Setting console encoding to UTF-8...')
// 设置控制台代码页为 UTF-8 (65001)
exec('chcp 65001', (error, stdout, stderr) => {
if (error) {
console.warn('Failed to set console code page:', error)
return
}
if (stderr) {
console.warn('Console code page setting warning:', stderr)
}
console.log('Console encoding set to UTF-8')
console.log('Output:', stdout)
})
} else {
console.log('Not on Windows, no console encoding change needed')
}