mp3-cutter

1.0.6 • Public • Published

MP3 Cutter

MP3 Cutter is a JavaScript library and a NodeJS module that allows you to cut your MP3 files by seconds.

NPM

npm install --save mp3-cutter

Yarn

yarn add mp3-cutter

Usage

const MP3Cutter = require('mp3-cutter');

MP3Cutter.cut({
    src: 'source.mp3',
    target: 'target.mp3',
    start: 25,
    end: 70 
});

Method

cut(Object options)

Options

src {String}

Path to the file to be cut.

target {String}

Path of the output file.

start {Number}

Start position in seconds.

end {Number}

End position in seconds.

CLI Tool

You can also use MP3 Cutter on the command line.

$ npm install -g mp3-cutter
$ mp3-cutter --src source.mp3 --target target.mp3 --start 10 --end 50

License

MP3 Cutter is provided under the MIT License.

Package Sidebar

Install

npm i mp3-cutter

Weekly Downloads

256

Version

1.0.6

License

MIT

Unpacked Size

11.2 kB

Total Files

9

Last publish

Collaborators

  • cevadtokatli