Files
RSSHub/website/docs/.format/file.mjs
T
Tony 06721a0f21 docs: ts config (#13690)
* 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
2023-11-03 23:17:17 +08:00

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' }),
};