mp3-cutter
v1.0.6
Published
MP3 Cutter is a JavaScript library and a NodeJS module that allows you to cut your MP3 files by seconds.
Downloads
5,824
Maintainers
Readme
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.