Skip to content

Commit 84ae730

Browse files
committed
Add package.json for cmd-line-parse example
1 parent 8eab249 commit 84ae730

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

examples/cmd-line-parse/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ mp3Parser example: Cmd line parse
33

44
Parses given mp3 file, invoking `mp3Parser.readTags` / `mp3Parser.readLastFrame` to output
55
information 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

88
In this example, mp3Parser is loaded as a CommonJS module.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

examples/cmd-line-parse/parse.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
const fs = require("fs");
55
const util = require("util");
6-
const mp3Parser = require(__dirname + "/../../main");
6+
const mp3Parser = require("mp3-parser");
7+
78
const pathToMp3 = process.argv[2];
89
const toArrayBuffer = buffer => {
910
const bufferLength = buffer.length;

0 commit comments

Comments
 (0)