mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
* docs: ts config
* chore: esm format script
* chore: bring back ast based formatting
* chore: revert 7b0493fbf4
* chore: update dependabot config
* docs: rename to mdx extension
* fix: unused import
* docs: fix search build
* chore: remove deps changes
12 lines
350 B
JavaScript
12 lines
350 B
JavaScript
import fs from 'fs/promises';
|
|
|
|
export default {
|
|
ROUTE_TYPE: 'route',
|
|
GUIDE_TYPE: 'guide',
|
|
NAV_TYPE: 'nav',
|
|
LANG_CN: 'zh-CN',
|
|
LANG_EN: 'en-US',
|
|
readFile: async (filePath) => await fs.readFile(filePath, { encoding: 'utf8' }),
|
|
writeFile: async (filePath, data) => await fs.writeFile(filePath, data, { encoding: 'utf8' }),
|
|
};
|