
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
com.hydroperfox.tmlanguage.yaml2json
Advanced tools
Convert YAML TMLanguage syntax with variables to JSON format.
Convert a tmLanguage written in YAML to JSON.
Features:
{{variableName}} syntax.Note this was repository had to be recreated as I deleted it previously.
Install with:
npm i -g com.hydroperfox.tmlanguage.yaml2json
Write a file mylanguage.tmLanguage.yaml:
# tmLanguage
---
$schema: https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json
name: MyLanguageName
scopeName: source.mylang
variables:
someVar: 'xxx'
patterns:
- include: '#foo'
repository:
foo:
patterns: []
Then run:
tmlangyaml2json mylanguage.tmLanguage.yaml mylanguage.tmLanguage.json
The output looks like follows:
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "MyLanguageName",
"patterns": [
{
"include": "#foo"
}
],
"repository": {
"foo": {
"patterns": []
}
},
"scopeName": "source.mylang"
}
FAQs
Convert YAML TMLanguage syntax with variables to JSON format.
We found that com.hydroperfox.tmlanguage.yaml2json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.