New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vscode-theme-to-monaco-theme-node

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-theme-to-monaco-theme-node

VSCode转换成monaco editor主题

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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>

# e.g. 转换单个文件
# npx vscode-theme-to-monaco-theme-node -i ./vscode-theme.json -o ./monaco-converted-theme.json

# e.g. 转换一个文件夹,将要转换的主题文件放在该文件夹下,只会读取一层目录
# npx vscode-theme-to-monaco-theme-node -i ./vscode-themes -o ./monaco-converted-themes

编程使用:

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'))

Keywords

FAQs

Package last updated on 24 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc