Socket
Socket
Sign inDemoInstall

@chayns/react-audio-editor

Package Overview
Dependencies
148
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @chayns/react-audio-editor

Tool to edit audio tracks.


Version published
Weekly downloads
2
Maintainers
3
Created
Weekly downloads
 

Readme

Source

@chayns/react-audio-editor

This audio editor allows the user to choose, edit and confirm an audio file.

Features:

  • Choose a track using an file input
  • Listen to the track
  • Cut track
  • Change volume
  • Highpass and lowpass filter
  • Save audio file as mp3

Usage

To use the audio editor, you also have to use the chayns JS API and chayns CSS API. To getting started with the chayns APIs, follow this guide.

You have to install this package with npm i -S @chayns/react-audio-editor.

At first time the component needs to be imported:

import AudioEditor from '@chayns/react-audio-editor';

After this, you can than use the AudioEditor in your react component like in the following example:

<AudioEditor onConfirm={console.log} onClear={console.log}/>

Properties

The following properties can be set on the AudioEditor component:

PropertyDescriptionTypeDefault
fileInitial chosen file. If not set, user has the possibility to choose a file.Filenull
onConfirmFunction which will be called after user has saved the audio file.functionFileSaver.saveAs
onClearFunction which will be called when user clicks on the delete Icon.functionconsole.log

Development

  1. Install dependencies with npm i
  2. Start dev task with npm start
  3. Link in an other project with npm link chayns-audio-editor

ESLint

Check your code style with npm run eslint before publishing.

Publish

  1. Commit all changes
  2. Bump version with
    • npm version patch to increase patch version
    • npm version minor to increase minor version
    • npm version major to increase major version
  3. Push your branch or branches and version tag.
  4. Publish with npm publish

Note: npm version [...] adds a git commit and a git tag

Keywords

FAQs

Last updated on 29 Apr 2019

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc