File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ mp3Parser example: Cmd line parse
33
44Parses given mp3 file, invoking ` mp3Parser.readTags ` / ` mp3Parser.readLastFrame ` to output
55information about ID3v2 or Xing/Lame tags as well as the last mp3 frame found. Run with
6- ` node parse.js <mp3-file> ` .
6+ ` node parse.js <mp3-file> ` after ` npm install ` ing .
77
88In this example, mp3Parser is loaded as a CommonJS module.
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " mp3-parser-example-cmd-line-parse" ,
3+ "version" : " 0.0.1" ,
4+ "description" : " Parse given mp3 file to output ID3v2 or Xing/Lame and last frame found." ,
5+ "keywords" : [
6+ " mp3" ,
7+ " id3"
8+ ],
9+ "bugs" : " https://github.com/biril/mp3-parser/issues" ,
10+ "license" : " MIT" ,
11+ "author" : " biril <alexlambiris@gmail.com>" ,
12+ "private" : true ,
13+ "dependencies" : {
14+ "mp3-parser" : " ^0.2.6"
15+ },
16+ "engines" : {
17+ "node" : " >=4.0.0"
18+ }
19+ }
Original file line number Diff line number Diff line change 33
44const fs = require ( "fs" ) ;
55const util = require ( "util" ) ;
6- const mp3Parser = require ( __dirname + "/../../main" ) ;
6+ const mp3Parser = require ( "mp3-parser" ) ;
7+
78const pathToMp3 = process . argv [ 2 ] ;
89const toArrayBuffer = buffer => {
910 const bufferLength = buffer . length ;
You can’t perform that action at this time.
0 commit comments