music-metadata 11.4.0 → 11.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/LICENSE.txt +9 -9
  2. package/README.md +859 -859
  3. package/lib/ParserFactory.d.ts +1 -1
  4. package/lib/ParserFactory.js +9 -0
  5. package/lib/aiff/AiffParser.js +1 -0
  6. package/lib/apev2/APEv2Parser.js +1 -0
  7. package/lib/common/MetadataCollector.d.ts +2 -0
  8. package/lib/common/MetadataCollector.js +5 -1
  9. package/lib/core.js +1 -4
  10. package/lib/dsdiff/DsdiffParser.js +1 -0
  11. package/lib/dsf/DsfParser.js +1 -0
  12. package/lib/flac/FlacParser.js +3 -2
  13. package/lib/mp4/Atom.js +0 -1
  14. package/lib/mp4/AtomToken.d.ts +24 -2
  15. package/lib/mp4/AtomToken.js +37 -9
  16. package/lib/mp4/MP4Parser.d.ts +3 -1
  17. package/lib/mp4/MP4Parser.js +106 -58
  18. package/lib/mpeg/MpegParser.js +1 -0
  19. package/lib/musepack/MusepackParser.js +1 -0
  20. package/lib/ogg/OggParser.d.ts +1 -12
  21. package/lib/ogg/OggParser.js +80 -94
  22. package/lib/ogg/{Ogg.d.ts → OggToken.d.ts} +11 -4
  23. package/lib/ogg/OggToken.js +42 -0
  24. package/lib/ogg/opus/{OpusParser.d.ts → OpusStream.d.ts} +5 -5
  25. package/lib/ogg/opus/{OpusParser.js → OpusStream.js} +8 -7
  26. package/lib/ogg/speex/{SpeexParser.d.ts → SpeexStream.d.ts} +3 -3
  27. package/lib/ogg/speex/{SpeexParser.js → SpeexStream.js} +4 -3
  28. package/lib/ogg/theora/{TheoraParser.d.ts → TheoraStream.d.ts} +4 -4
  29. package/lib/ogg/theora/{TheoraParser.js → TheoraStream.js} +7 -6
  30. package/lib/ogg/vorbis/{VorbisParser.d.ts → VorbisStream.d.ts} +5 -4
  31. package/lib/ogg/vorbis/{VorbisParser.js → VorbisStream.js} +11 -12
  32. package/lib/type.d.ts +9 -1
  33. package/lib/wav/WaveParser.js +1 -0
  34. package/lib/wavpack/WavPackParser.js +1 -0
  35. package/package.json +146 -146
  36. package/lib/ogg/Ogg.js +0 -2
package/package.json CHANGED
@@ -1,146 +1,146 @@
1
- {
2
- "name": "music-metadata",
3
- "description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
4
- "version": "11.4.0",
5
- "author": {
6
- "name": "Borewit",
7
- "url": "https://github.com/Borewit"
8
- },
9
- "funding": [
10
- {
11
- "type": "github",
12
- "url": "https://github.com/sponsors/Borewit"
13
- },
14
- {
15
- "type": "buymeacoffee",
16
- "url": "https://buymeacoffee.com/borewit"
17
- }
18
- ],
19
- "sideEffects": false,
20
- "type": "module",
21
- "exports": {
22
- "node": {
23
- "import": "./lib/index.js",
24
- "module-sync": "./lib/index.js",
25
- "types": "./lib/index.d.ts"
26
- },
27
- "default": {
28
- "import": "./lib/core.js",
29
- "module-sync": "./lib/core.js",
30
- "types": "./lib/core.d.ts"
31
- }
32
- },
33
- "types": "lib/index.d.ts",
34
- "files": [
35
- "lib/**/*.js",
36
- "lib/**/*.d.ts"
37
- ],
38
- "keywords": [
39
- "music",
40
- "metadata",
41
- "meta",
42
- "audio",
43
- "tag",
44
- "tags",
45
- "duration",
46
- "MusicBrainz",
47
- "Discogs",
48
- "Picard",
49
- "ID3",
50
- "ID3v1",
51
- "ID3v2",
52
- "m4a",
53
- "m4b",
54
- "mp3",
55
- "mp4",
56
- "Vorbis",
57
- "ogg",
58
- "flac",
59
- "Matroska",
60
- "WebM",
61
- "EBML",
62
- "asf",
63
- "wma",
64
- "wmv",
65
- "ape",
66
- "MonkeyAudio",
67
- "aiff",
68
- "wav",
69
- "WavPack",
70
- "Opus",
71
- "speex",
72
- "musepack",
73
- "mpc",
74
- "dsd",
75
- "dsf",
76
- "mpc",
77
- "dff",
78
- "dsdiff",
79
- "aac",
80
- "adts",
81
- "length",
82
- "chapter",
83
- "info",
84
- "parse",
85
- "parser",
86
- "bwf",
87
- "slt",
88
- "lyrics"
89
- ],
90
- "scripts": {
91
- "clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map' 'test/**/*.js' 'test/**/*.js.map' 'doc-gen/**/*.js' 'doc-gen/**/*.js.map'",
92
- "compile-src": "tsc -p lib",
93
- "compile-test": "tsc -p test",
94
- "compile-doc": "tsc -p doc-gen",
95
- "compile": "yarn run compile-src && yarn compile-test && yarn compile-doc",
96
- "lint:ts": "biome check --error-on-warnings",
97
- "lint:md": "yarn run remark -u remark-preset-lint-consistent .",
98
- "lint": "yarn run lint:ts && yarn run lint:md",
99
- "test": "mocha",
100
- "build": "yarn run clean && yarn compile && yarn run doc-gen",
101
- "test-coverage": "c8 yarn run test",
102
- "send-codacy": "c8 report --reporter=text-lcov | codacy-coverage",
103
- "doc-gen": "yarn node doc-gen/gen.js",
104
- "typecheck": "tsc --project ./lib/tsconfig.json --noEmit && tsc --project ./test/tsconfig.json --noEmit"
105
- },
106
- "dependencies": {
107
- "@tokenizer/token": "^0.3.0",
108
- "content-type": "^1.0.5",
109
- "debug": "^4.4.1",
110
- "file-type": "^21.0.0",
111
- "media-typer": "^1.1.0",
112
- "strtok3": "^10.3.1",
113
- "token-types": "^6.0.0",
114
- "uint8array-extras": "^1.4.0"
115
- },
116
- "devDependencies": {
117
- "@biomejs/biome": "2.0.5",
118
- "@types/chai": "^5.2.2",
119
- "@types/chai-as-promised": "^8.0.2",
120
- "@types/content-type": "^1.1.9",
121
- "@types/debug": "^4.1.12",
122
- "@types/media-typer": "^1.1.3",
123
- "@types/mocha": "^10.0.10",
124
- "@types/node": "^24.0.3",
125
- "c8": "^10.1.3",
126
- "chai": "^5.2.0",
127
- "chai-as-promised": "^8.0.1",
128
- "del-cli": "^6.0.0",
129
- "mime": "^4.0.7",
130
- "mocha": "^11.7.1",
131
- "node-readable-to-web-readable-stream": "^0.4.2",
132
- "remark-cli": "^12.0.1",
133
- "remark-preset-lint-consistent": "^6.0.1",
134
- "ts-node": "^10.9.2",
135
- "typescript": "^5.8.3"
136
- },
137
- "engines": {
138
- "node": ">=18"
139
- },
140
- "repository": "github:Borewit/music-metadata",
141
- "license": "MIT",
142
- "bugs": {
143
- "url": "https://github.com/Borewit/music-metadata/issues"
144
- },
145
- "packageManager": "yarn@4.9.2"
146
- }
1
+ {
2
+ "name": "music-metadata",
3
+ "description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
4
+ "version": "11.6.0",
5
+ "author": {
6
+ "name": "Borewit",
7
+ "url": "https://github.com/Borewit"
8
+ },
9
+ "funding": [
10
+ {
11
+ "type": "github",
12
+ "url": "https://github.com/sponsors/Borewit"
13
+ },
14
+ {
15
+ "type": "buymeacoffee",
16
+ "url": "https://buymeacoffee.com/borewit"
17
+ }
18
+ ],
19
+ "sideEffects": false,
20
+ "type": "module",
21
+ "exports": {
22
+ "node": {
23
+ "import": "./lib/index.js",
24
+ "module-sync": "./lib/index.js",
25
+ "types": "./lib/index.d.ts"
26
+ },
27
+ "default": {
28
+ "import": "./lib/core.js",
29
+ "module-sync": "./lib/core.js",
30
+ "types": "./lib/core.d.ts"
31
+ }
32
+ },
33
+ "types": "lib/index.d.ts",
34
+ "files": [
35
+ "lib/**/*.js",
36
+ "lib/**/*.d.ts"
37
+ ],
38
+ "keywords": [
39
+ "music",
40
+ "metadata",
41
+ "meta",
42
+ "audio",
43
+ "tag",
44
+ "tags",
45
+ "duration",
46
+ "MusicBrainz",
47
+ "Discogs",
48
+ "Picard",
49
+ "ID3",
50
+ "ID3v1",
51
+ "ID3v2",
52
+ "m4a",
53
+ "m4b",
54
+ "mp3",
55
+ "mp4",
56
+ "Vorbis",
57
+ "ogg",
58
+ "flac",
59
+ "Matroska",
60
+ "WebM",
61
+ "EBML",
62
+ "asf",
63
+ "wma",
64
+ "wmv",
65
+ "ape",
66
+ "MonkeyAudio",
67
+ "aiff",
68
+ "wav",
69
+ "WavPack",
70
+ "Opus",
71
+ "speex",
72
+ "musepack",
73
+ "mpc",
74
+ "dsd",
75
+ "dsf",
76
+ "mpc",
77
+ "dff",
78
+ "dsdiff",
79
+ "aac",
80
+ "adts",
81
+ "length",
82
+ "chapter",
83
+ "info",
84
+ "parse",
85
+ "parser",
86
+ "bwf",
87
+ "slt",
88
+ "lyrics"
89
+ ],
90
+ "scripts": {
91
+ "clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map' 'test/**/*.js' 'test/**/*.js.map' 'doc-gen/**/*.js' 'doc-gen/**/*.js.map'",
92
+ "compile-src": "tsc -p lib",
93
+ "compile-test": "tsc -p test",
94
+ "compile-doc": "tsc -p doc-gen",
95
+ "compile": "yarn run compile-src && yarn compile-test && yarn compile-doc",
96
+ "lint:ts": "biome check --error-on-warnings",
97
+ "lint:md": "yarn run remark -u remark-preset-lint-consistent .",
98
+ "lint": "yarn run lint:ts && yarn run lint:md",
99
+ "test": "mocha",
100
+ "build": "yarn run clean && yarn compile && yarn run doc-gen",
101
+ "test-coverage": "c8 yarn run test",
102
+ "send-codacy": "c8 report --reporter=text-lcov | codacy-coverage",
103
+ "doc-gen": "yarn node doc-gen/gen.js",
104
+ "typecheck": "tsc --project ./lib/tsconfig.json --noEmit && tsc --project ./test/tsconfig.json --noEmit"
105
+ },
106
+ "dependencies": {
107
+ "@tokenizer/token": "^0.3.0",
108
+ "content-type": "^1.0.5",
109
+ "debug": "^4.4.1",
110
+ "file-type": "^21.0.0",
111
+ "media-typer": "^1.1.0",
112
+ "strtok3": "^10.3.1",
113
+ "token-types": "^6.0.3",
114
+ "uint8array-extras": "^1.4.0"
115
+ },
116
+ "devDependencies": {
117
+ "@biomejs/biome": "2.0.6",
118
+ "@types/chai": "^5.2.2",
119
+ "@types/chai-as-promised": "^8.0.2",
120
+ "@types/content-type": "^1.1.9",
121
+ "@types/debug": "^4.1.12",
122
+ "@types/media-typer": "^1.1.3",
123
+ "@types/mocha": "^10.0.10",
124
+ "@types/node": "^24.0.4",
125
+ "c8": "^10.1.3",
126
+ "chai": "^5.2.0",
127
+ "chai-as-promised": "^8.0.1",
128
+ "del-cli": "^6.0.0",
129
+ "mime": "^4.0.7",
130
+ "mocha": "^11.7.1",
131
+ "node-readable-to-web-readable-stream": "^0.4.2",
132
+ "remark-cli": "^12.0.1",
133
+ "remark-preset-lint-consistent": "^6.0.1",
134
+ "ts-node": "^10.9.2",
135
+ "typescript": "^5.8.3"
136
+ },
137
+ "engines": {
138
+ "node": ">=18"
139
+ },
140
+ "repository": "github:Borewit/music-metadata",
141
+ "license": "MIT",
142
+ "bugs": {
143
+ "url": "https://github.com/Borewit/music-metadata/issues"
144
+ },
145
+ "packageManager": "yarn@4.9.2"
146
+ }
package/lib/ogg/Ogg.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Ogg.js.map