Gathering detailed insights and metrics for ng-monaco-editor
Gathering detailed insights and metrics for ng-monaco-editor
Gathering detailed insights and metrics for ng-monaco-editor
Gathering detailed insights and metrics for ng-monaco-editor
@ng-util/monaco-editor
Monaco Code Editor for Angular
@nankingcigar/ng-monaco-editor
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 19
@1xtend/ng-monaco-editor
Monaco Editor for Angular 17+
ngx-monaco-tree
A tree view based on monaco-editor powered by VSCode.
npm install ng-monaco-editor
Typescript
Module System
Node Version
NPM Version
TypeScript (94.37%)
SCSS (3.39%)
HTML (1.66%)
JavaScript (0.58%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
29 Stars
105 Commits
5 Forks
15 Watchers
6 Branches
12 Contributors
Updated on May 17, 2024
Latest Version
5.1.1
Package Id
ng-monaco-editor@5.1.1
Unpacked Size
164.47 kB
Size
41.02 kB
File Count
27
NPM Version
8.19.4
Node Version
16.20.2
Published on
Mar 14, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
3
Angular
10+monaco-editor
: 0.15+See: https://ng-monaco-editor.js.org or https://ng-monaco-editor.netlify.app
1# npm 2npm i monaco-editor ng-monaco-editor 3 4# yarn 5yarn add monaco-editor ng-monaco-editor
It's supported to load monaco-editor with AMD or ESM mode.
If you'd like to use AMD mode, you have to make sure your Angular application could have access to the monaco-editor
library
assets via AMD. If you are using Angular CLI to bootstrap your app, you could add the following:
1{ 2 "assets": [ 3 "src/favicon.ico", 4 "src/assets", 5 6 { 7 "glob": "**/*", 8 "input": "node_modules/monaco-editor/min/vs", 9 "output": "/lib/vs" 10 } 11 ] 12}
Most of the time, you should configure the module at the root module.
1@NgModule({ 2 declarations: [AppComponent], 3 imports: [ 4 BrowserModule, 5 FormsModule, 6 MonacoEditorModule.forRoot({ 7 /** 8 * optional, load monaco by yourself, you'd prefer loading esm for example 9 */ 10 dynamicImport: () => import('monaco-editor'), 11 12 /** 13 * optional, use amd loader to load monaco if present, lower priority than `dynamicImport` 14 * 15 * Angular CLI currently does not handle assets with hashes. We manage it by manually adding 16 * version numbers to force library updates: 17 */ 18 baseUrl: 'lib/v1', 19 20 defaultOptions: {}, 21 }), 22 ], 23 providers: [ 24 { 25 // Optional: 26 // You could also override the default MonacoEditor provider. 27 // If you plan to do so, I recommend you to read through the source code. 28 provide: MonacoProviderService, 29 useClass: CustomMonacoProviderService, 30 }, 31 ], 32 bootstrap: [AppComponent], 33}) 34export class AppModule {}
Please refer to the storybook (stories/**/*.stories.ts
).
This module provide three usages:
ng-monaco-editor
componentng-monaco-diff-editor
componentngCodeColorize
directiveNote, if the height of ng-monaco-editor/ng-monaco-diff-editor is too small, you may have to resize it yourself. This is a limitation and by design that how monaco-editor works.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 6/22 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
56 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More