vscode-theme-to-monaco-theme-node
一个将VSCode
主题转换成Monaco Editor
主题的工具,适用于nodejs
环境。
安装
npm i vscode-theme-to-monaco-theme-node -D
命令行使用:
npx vscode-theme-to-monaco-theme-node -i <input-file-or-folder-path> -o <output-file-or-folder-path>
编程使用:
const converter = require('vscode-theme-to-monaco-theme-node');
converter.convertThemeFromFilePath(path.resolve(__dirname, 'themesFrom', 'OneDarkPro.jsonc'), path.resolve(__dirname, 'themesTo', 'OneDarkPro.json'))
converter.convertThemeFromDir(path.resolve(__dirname, 'themesFrom'), path.resolve(__dirname, 'themesTo'))