Installations
npm install ng2-codemirror-typescript
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
16.14.2
NPM Version
8.5.0
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
sguiheux
Download Statistics
Total Downloads
39,374
Last Day
1
Last Week
14
Last Month
71
Last Year
749
GitHub Statistics
1 Stars
13 Commits
1 Forks
3 Watching
3 Branches
2 Contributors
Package Meta Information
Latest Version
3.13.1
Package Id
ng2-codemirror-typescript@3.13.1
Unpacked Size
5.84 kB
Size
2.49 kB
File Count
5
NPM Version
8.5.0
Node Version
16.14.2
Total Downloads
Cumulative downloads
Total Downloads
39,374
Last day
-87.5%
1
Compared to previous day
Last week
-51.7%
14
Compared to previous week
Last month
97.2%
71
Compared to previous month
Last year
-75.4%
749
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
2
Angular2 - Codemirror component
Typescript version of https://github.com/chymz/ng2-codemirror
Installation
- Include Codemirror javascript files in your application (with files for modes)
- Install ng2-codemirror-typescript
- NPM :
npm install ng2-codemirror-typescript
- NPM :
Dependencies
CodeMirror library is required for this component :
- Install via NPM :
npm install codemirror
CodeMirror need to be accessible by import 'codemirror'
Then you need to include base CSS of codemirror located in codemirror/lib/codemirror.css
Pay attention, if you want to use placeholder you need to import codemirror/addon/display/placeholder.js
Sample (ES2016+)
Include CodemirrorModule
in your main module :
1import {CodemirrorModule} from 'ng2-codemirror/Codemirror'; 2 3@NgModule({ 4 // ... 5 imports: [ 6 CodemirrorModule 7 ], 8 // ... 9}) 10export class AppModule { }
1import {Component} from 'angular2/core'; 2 3@Component({ 4 selector: 'sample', 5 template: `<codemirror [(ngModel)]="code" [config]="{...}" placeholder="Here is the code placeholder"></codemirror>` 6}) 7export class Sample{ 8 constructor(){ 9 this.code = `// Some code...`; 10 } 11}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/13 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Score
3
/10
Last Scanned on 2025-01-20
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