Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@replit/codemirror-typesound

Package Overview
Dependencies
Maintainers
17
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@replit/codemirror-typesound

Make sounds when typing!

unpublished
latest
npmnpm
Version
0.19.0
Version published
Weekly downloads
0
Maintainers
17
Weekly downloads
 
Created
Source

CodeMirror TypeSound

A codemirror extension that adds typing sound on keystroke.

Usage

import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';
import typeSound from '@replit/codemirror-typesound';

// hold Alt and drag / click values
new EditorView({
  state: EditorState.create({
    doc: 'const num = 123',
    extensions: [
      typeSound({
        key: 'typewriter-key.mp3',
        enter: 'typewriter-enter.mp3',
        backspace: 'typewriter-backspace.mp3',
        volume: 0.1,
        freeJazz: true,
      }),
    ],
  }),
  parent: document.querySelector('#editor'),
});

FAQs

Package last updated on 10 Jan 2022

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