New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@visbot/codemirror-avs

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visbot/codemirror-avs

Winamp AVS mode for CodeMirror 5

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-22.22%
Maintainers
2
Weekly downloads
 
Created
Source

codemirror-avs

npm npm CI David

Description

A mode for Winamp AVS to use with CodeMirror, the versatile text editor implemented in JavaScript for the browser.

Demo Time 🙌

Installation

Use your preferred Node package manager to install the mode

$ yarn add @visbot/codemirror-avs || npm install @visbot/codemirror-avs

Alternatively, you can clone this repository

$ git clone https://github.com/visbot/codemirror-avs

Usage

Example usage on website

<!DOCTYPE html>
<html>
<head>
  <!-- Import CodeMirror styles -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/codemirror@5/lib/codemirror.min.css">
<head>
</head>
<body>
  <!-- Add Textarea -->
  <textarea id="editor"></textarea>

  <!-- Import CodeMirror library -->
  <script defer src="https://cdn.jsdelivr.net/npm/codemirror@5/lib/codemirror.min.js"></script>

  <!-- Import AVS mode -->
  <script defer src="https://cdn.jsdelivr.net/npm/@visbot/codemirror-avs@latest/dist/avs.min.js"></script>

  <!-- Initialize CodeMirror -->
  <script type="text/javascript">
    const editor = document.getElementById('editor');
    const options = {
      lineNumbers: true,
      mode: 'avs'
    };

    const cm = CodeMirror.fromTextArea(editor, options);
  </script>
</body>
</html>

Note: If you want to load CodeMirror from a CDN, make sure to specify a specific version for better performance – the example above doesn't to keep it simple.

Modes

Beside the loose avs mode, you can specify stricter modes for specific components:

ModeEffect
avs/bumpTrans/Bump
avs/color-modifierTrans/Color Modifier
avs/dynamic-distance-modifierTrans/Dynamic Distance Modifier
avs/dynamic-movementTrans/Dynamic Movement
avs/dynamic-shiftTrans/Dynamic Shift
avs/effect-listEffect List
avs/movementTrans/Movement
avs/superscopeRender/SuperScope
avs/texer2Render/Texer II
avs/triangleRender/Triangle

License

All code is licensed under The MIT License

Keywords

FAQs

Package last updated on 01 Nov 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