Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codewars/codemirror-unicode-helper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codewars/codemirror-unicode-helper

CodeMirror extension for entering Unicode characters using LaTeX-like abbreviations

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

codemirror-unicode-helper

CodeMirror extension for entering Unicode characters using LaTeX-like abbreviations.

Provides functions unicodeHelper and unicodeHelperWith.

  • unicodeHelper: Hint helper with preconfigured sequences.
  • unicodeHelperWith(pairs: [seq: string, sym: string][]): Returns a hint helper with privided pairs.

Usage

Using with preconfigured sequences:

import CodeMirror from "codemirror";
import "codemirror/addon/hint/show-hint";
import { unicodeHelper } from "@codewars/codemirror-unicode-helper";

CodeMirror.registerGlobalHelper(
  "hint",
  "unicode-helper",
  predicate,
  unicodeHelper
);

Using with custom sequences:

import CodeMirror from "codemirror";
import "codemirror/addon/hint/show-hint";
import { unicodeHelperWith } from "@codewars/codemirror-unicode-helper";

CodeMirror.registerGlobalHelper(
  "hint",
  "unicode-helper",
  predicate,
  unicodeHelperWith([
    ["div", "÷"],
    ["pi", "π"],
    ["sqrt", "√"],
    ["cbrt", "∛"],
  ])
);

FAQs

Package last updated on 14 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc