🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

monaco-languages-jq

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

monaco-languages-jq

Monaco Editor JQ language definition (and syntax highlight)

1.0.0
latest
Source
npm
Version published
Weekly downloads
773
10.74%
Maintainers
1
Weekly downloads
 
Created
Source

monaco-languages-jq · GitHub license npm version PRs Welcome

Monaco Editor JQ language definition (and syntax highlight)

Installation

  • npm i -S monaco-languages-jq

Usage

With a helper function to register straight to monaco

// `monaco` should be global or local in the loading module

import { registerJQLanguageDefinition } from 'monaco-languages-jq';

...

registerJQLanguageDefinition(monaco);

DIY (in case you want it to be called some other name):

// `monaco` should be global or local in the loading module

import { JQLanguageDefinition } from 'monaco-languages-jq';

...

// Register a new language
monaco.languages.register({ id: 'jq' });

// Register a tokens provider for the language
monaco.languages.setMonarchTokensProvider('jq', JQLanguageDefinition);

In monaco editor use "jq" (or your value if changed) as language.

License

monaco-languages-jq is MIT Licensed

Keywords

monaco

FAQs

Package last updated on 06 Apr 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