@otjs/monaco
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

@otjs/monaco

Sponsor Npm Version Weekly Downloads Minified Zipped Size Types License Dependencies Dependents Vulnerabilities Stars Forks Discussions

Description

Editor Adapter implementation for Monaco.

Installation

  • To install using Pnpm (recommended):

    pnpm add @otjs/ace
  • To install using Yarn:

    yarn add @otjs/monaco
  • To install using Npm:

    npm i @otjs/monaco --save

Peer Dependencies

Make sure to install all the peer dependencies beforehand:

Monaco Editor

Usage


import { MonacoAdapter } from "@otjs/monaco";

const monacoAdapter = new MonacoAdapter({
  editor:                   // Monaco Editor Instance
  announcementDuration:     // Duration (in ms) of User Name Announcement beside Cursor (optional)
  bindEvents:               // Boolean on whether or not to emit events from Adapter (optional)
});

Note: An API documentation will be shipped along with the package. This will power intellisense in the editor of your choice.

Testing

We don't have any Unit Test Suite for @otjs/monaco. Please refer to root README for details regarding Integration Test Suite that concerns monaco.

Reporting a Bug

Head on to Discussion section to report a bug or to ask for any feature. Use this template to make it structural and helpful for the maintainer and the contributors. Feel to add your queries about using this library as well under Q & A section of it. Remember, do not create any Issues by yourself, maintainers of this repository will open one if deemed necessary.

Changelog

See CHANGELOG for more details on what has been changed in the latest release.

Contributing

See Contributing Guidelines.

License

This project is licensed under the terms of the MIT license, see LICENSE for more details.

Package Sidebar

Install

npm i @otjs/monaco

Weekly Downloads

4

Version

0.2.2

License

MIT

Unpacked Size

108 kB

Total Files

6

Last publish

Collaborators

  • bprogyan