music-metadata 10.8.3 → 10.9.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.
- package/LICENSE.txt +9 -9
- package/README.md +859 -846
- package/lib/asf/AsfObject.d.ts +7 -1
- package/lib/default.cjs +5 -5
- package/lib/node.cjs +5 -5
- package/package.json +151 -149
package/lib/asf/AsfObject.d.ts
CHANGED
|
@@ -10,7 +10,13 @@ declare const AsfContentParseError_base: {
|
|
|
10
10
|
stack?: string;
|
|
11
11
|
};
|
|
12
12
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
13
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite
|
|
13
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite /**
|
|
14
|
+
* Specifies the amount of time to buffer data before starting to play the file, in millisecond units.
|
|
15
|
+
* If this value is nonzero, the Play Duration field and all of the payload Presentation Time fields have been offset
|
|
16
|
+
* by this amount. Therefore, player software must subtract the value in the preroll field from the play duration and
|
|
17
|
+
* presentation times to calculate their actual values. It follows that all payload Presentation Time fields need to
|
|
18
|
+
* be at least this value.
|
|
19
|
+
*/[]) => any) | undefined;
|
|
14
20
|
stackTraceLimit: number;
|
|
15
21
|
};
|
|
16
22
|
export declare class AsfContentParseError extends AsfContentParseError_base {
|
package/lib/default.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// CommonJS core (default) entry point
|
|
2
|
-
"use strict";
|
|
3
|
-
module.exports = {
|
|
4
|
-
loadMusicMetadata: () => import('./core.js'),
|
|
5
|
-
};
|
|
1
|
+
// CommonJS core (default) entry point
|
|
2
|
+
"use strict";
|
|
3
|
+
module.exports = {
|
|
4
|
+
loadMusicMetadata: () => import('./core.js'),
|
|
5
|
+
};
|
package/lib/node.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// CommonJS Node entry point
|
|
2
|
-
"use strict";
|
|
3
|
-
module.exports = {
|
|
4
|
-
loadMusicMetadata: () => import('./index.js'),
|
|
5
|
-
};
|
|
1
|
+
// CommonJS Node entry point
|
|
2
|
+
"use strict";
|
|
3
|
+
module.exports = {
|
|
4
|
+
loadMusicMetadata: () => import('./index.js'),
|
|
5
|
+
};
|
package/package.json
CHANGED
|
@@ -1,149 +1,151 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "music-metadata",
|
|
3
|
-
"description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
|
|
4
|
-
"version": "10.
|
|
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
|
-
"type": "module",
|
|
20
|
-
"exports": {
|
|
21
|
-
".": {
|
|
22
|
-
"node": {
|
|
23
|
-
"import": "./lib/index.js",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"lib
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"
|
|
96
|
-
"compile-
|
|
97
|
-
"compile": "
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"lint": "
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"test
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"@
|
|
122
|
-
"@types/
|
|
123
|
-
"@types/
|
|
124
|
-
"@types/
|
|
125
|
-
"@types/
|
|
126
|
-
"@types/
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "music-metadata",
|
|
3
|
+
"description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
|
|
4
|
+
"version": "10.9.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
|
+
"type": "module",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"node": {
|
|
23
|
+
"import": "./lib/index.js",
|
|
24
|
+
"module-sync": "./lib/index.js",
|
|
25
|
+
"require": "./lib/node.cjs",
|
|
26
|
+
"types": "./lib/index.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"default": {
|
|
29
|
+
"import": "./lib/core.js",
|
|
30
|
+
"module-sync": "./lib/index.js",
|
|
31
|
+
"require": "./lib/default.cjs",
|
|
32
|
+
"types": "./lib/core.d.ts"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"types": "lib/index.d.ts",
|
|
37
|
+
"files": [
|
|
38
|
+
"lib/**/*.js",
|
|
39
|
+
"lib/**/*.d.ts",
|
|
40
|
+
"lib/*.cjs"
|
|
41
|
+
],
|
|
42
|
+
"keywords": [
|
|
43
|
+
"music",
|
|
44
|
+
"metadata",
|
|
45
|
+
"meta",
|
|
46
|
+
"audio",
|
|
47
|
+
"tag",
|
|
48
|
+
"tags",
|
|
49
|
+
"duration",
|
|
50
|
+
"MusicBrainz",
|
|
51
|
+
"Discogs",
|
|
52
|
+
"Picard",
|
|
53
|
+
"ID3",
|
|
54
|
+
"ID3v1",
|
|
55
|
+
"ID3v2",
|
|
56
|
+
"m4a",
|
|
57
|
+
"m4b",
|
|
58
|
+
"mp3",
|
|
59
|
+
"mp4",
|
|
60
|
+
"Vorbis",
|
|
61
|
+
"ogg",
|
|
62
|
+
"flac",
|
|
63
|
+
"Matroska",
|
|
64
|
+
"WebM",
|
|
65
|
+
"EBML",
|
|
66
|
+
"asf",
|
|
67
|
+
"wma",
|
|
68
|
+
"wmv",
|
|
69
|
+
"ape",
|
|
70
|
+
"MonkeyAudio",
|
|
71
|
+
"aiff",
|
|
72
|
+
"wav",
|
|
73
|
+
"WavPack",
|
|
74
|
+
"Opus",
|
|
75
|
+
"speex",
|
|
76
|
+
"musepack",
|
|
77
|
+
"mpc",
|
|
78
|
+
"dsd",
|
|
79
|
+
"dsf",
|
|
80
|
+
"mpc",
|
|
81
|
+
"dff",
|
|
82
|
+
"dsdiff",
|
|
83
|
+
"aac",
|
|
84
|
+
"adts",
|
|
85
|
+
"length",
|
|
86
|
+
"chapter",
|
|
87
|
+
"info",
|
|
88
|
+
"parse",
|
|
89
|
+
"parser",
|
|
90
|
+
"bwf",
|
|
91
|
+
"slt",
|
|
92
|
+
"lyrics"
|
|
93
|
+
],
|
|
94
|
+
"scripts": {
|
|
95
|
+
"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'",
|
|
96
|
+
"compile-src": "tsc -p lib",
|
|
97
|
+
"compile-test": "tsc -p test",
|
|
98
|
+
"compile-doc": "tsc -p doc-gen",
|
|
99
|
+
"compile": "yarn run compile-src && yarn compile-test && yarn compile-doc",
|
|
100
|
+
"lint-ts": "biome check",
|
|
101
|
+
"lint-md": "yarn run remark -u remark-preset-lint-consistent .",
|
|
102
|
+
"lint": "yarn run lint-ts && yarn run lint-md",
|
|
103
|
+
"test": "mocha",
|
|
104
|
+
"build": "yarn run clean && yarn compile && yarn run doc-gen",
|
|
105
|
+
"test-coverage": "c8 yarn run test",
|
|
106
|
+
"send-codacy": "c8 report --reporter=text-lcov | codacy-coverage",
|
|
107
|
+
"doc-gen": "yarn node doc-gen/gen.js"
|
|
108
|
+
},
|
|
109
|
+
"dependencies": {
|
|
110
|
+
"@tokenizer/token": "^0.3.0",
|
|
111
|
+
"content-type": "^1.0.5",
|
|
112
|
+
"debug": "^4.4.0",
|
|
113
|
+
"file-type": "^19.6.0",
|
|
114
|
+
"link": "^2.1.1",
|
|
115
|
+
"media-typer": "^1.1.0",
|
|
116
|
+
"strtok3": "^10.2.1",
|
|
117
|
+
"token-types": "^6.0.0",
|
|
118
|
+
"uint8array-extras": "^1.4.0"
|
|
119
|
+
},
|
|
120
|
+
"devDependencies": {
|
|
121
|
+
"@biomejs/biome": "1.9.4",
|
|
122
|
+
"@types/chai": "^5.0.1",
|
|
123
|
+
"@types/chai-as-promised": "^8.0.1",
|
|
124
|
+
"@types/content-type": "^1.1.8",
|
|
125
|
+
"@types/debug": "^4.1.12",
|
|
126
|
+
"@types/media-typer": "^1.1.3",
|
|
127
|
+
"@types/mocha": "^10.0.10",
|
|
128
|
+
"@types/node": "^22.13.1",
|
|
129
|
+
"c8": "^10.1.3",
|
|
130
|
+
"chai": "^5.1.2",
|
|
131
|
+
"chai-as-promised": "^8.0.1",
|
|
132
|
+
"del-cli": "^6.0.0",
|
|
133
|
+
"mime": "^4.0.6",
|
|
134
|
+
"mocha": "^11.1.0",
|
|
135
|
+
"remark-cli": "^12.0.1",
|
|
136
|
+
"remark-preset-lint-consistent": "^6.0.1",
|
|
137
|
+
"ts-node": "^10.9.2",
|
|
138
|
+
"typescript": "^5.7.3"
|
|
139
|
+
},
|
|
140
|
+
"engines": {
|
|
141
|
+
"node": ">=18"
|
|
142
|
+
},
|
|
143
|
+
"repository": {
|
|
144
|
+
"type": "https://github.com/borewit/music-metadata.git"
|
|
145
|
+
},
|
|
146
|
+
"license": "MIT",
|
|
147
|
+
"bugs": {
|
|
148
|
+
"url": "https://github.com/Borewit/music-metadata/issues"
|
|
149
|
+
},
|
|
150
|
+
"packageManager": "yarn@4.6.0"
|
|
151
|
+
}
|