@maxmellon/cue-parser 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # CUE Parser
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@maxmellon/cue-parser.svg)](https://www.npmjs.com/package/@maxmellon/cue-parser)
4
+ [![license](https://img.shields.io/npm/l/@maxmellon/cue-parser.svg)](LICENSE)
5
+
3
6
  A TypeScript library for parsing CUE sheet files according to the [CUE Sheet specification](https://wyday.com/cuesharp/specification.php).
4
7
 
5
8
  🌐 **[Live Demo](https://melocil.de/cue-parser/)** - Try the CUE parser online!
9
+ 📦 **[npm: @maxmellon/cue-parser](https://www.npmjs.com/package/@maxmellon/cue-parser)**
6
10
 
7
11
  ## Features
8
12
 
@@ -16,12 +20,13 @@ A TypeScript library for parsing CUE sheet files according to the [CUE Sheet spe
16
20
  ## Installation
17
21
 
18
22
  ```bash
19
- npm install cue-parser
23
+ npm install @maxmellon/cue-parser
20
24
  ```
21
25
 
22
26
  ## CLI Usage
23
27
 
24
- After installation, you can use the `cue-parser` command directly:
28
+ After installation, you can use the `cue-parser` command directly.
29
+ To run it without installing, use `npx @maxmellon/cue-parser album.cue`.
25
30
 
26
31
  ```bash
27
32
  # Parse and display a CUE file
@@ -139,7 +144,7 @@ $ cue-parser album.cue --validate --stats
139
144
  ### Basic Parsing
140
145
 
141
146
  ```typescript
142
- import { parseCueSheet } from 'cue-parser';
147
+ import { parseCueSheet } from '@maxmellon/cue-parser';
143
148
 
144
149
  const cueContent = `
145
150
  TITLE "Example Album"
@@ -163,7 +168,7 @@ if (result.cueSheet) {
163
168
  ### Using the Parser Class
164
169
 
165
170
  ```typescript
166
- import { CueParser } from 'cue-parser';
171
+ import { CueParser } from '@maxmellon/cue-parser';
167
172
 
168
173
  const parser = new CueParser();
169
174
  const result = parser.parse(cueContent);
@@ -185,7 +190,7 @@ if (result.warnings.length > 0) {
185
190
  ### Working with MSF Time Format
186
191
 
187
192
  ```typescript
188
- import { parseHMSTime, formatHMSTime, hmsToSeconds } from 'cue-parser';
193
+ import { parseHMSTime, formatHMSTime, hmsToSeconds } from '@maxmellon/cue-parser';
189
194
 
190
195
  // Parse MSF time string
191
196
  const time = parseHMSTime('1:30:45'); // { hour: 1, minute: 30, second: 45 }
@@ -200,7 +205,7 @@ const totalSeconds = hmsToSeconds(time); // 5445 seconds
200
205
  ### Serializing CUE Sheets
201
206
 
202
207
  ```typescript
203
- import { parseCueSheet, serializeCueSheet, formatCueSheet, createMinimalCueSheet } from 'cue-parser';
208
+ import { parseCueSheet, serializeCueSheet, formatCueSheet, createMinimalCueSheet } from '@maxmellon/cue-parser';
204
209
 
205
210
  const result = parseCueSheet(cueContent);
206
211
 
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @example
7
7
  * ```typescript
8
- * import { parseCueSheet, CueParser } from 'cue-parser';
8
+ * import { parseCueSheet, CueParser } from '@maxmellon/cue-parser';
9
9
  *
10
10
  * const cueContent = `
11
11
  * TITLE "Example Album"
package/dist/src/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @example
7
7
  * ```typescript
8
- * import { parseCueSheet, CueParser } from 'cue-parser';
8
+ * import { parseCueSheet, CueParser } from '@maxmellon/cue-parser';
9
9
  *
10
10
  * const cueContent = `
11
11
  * TITLE "Example Album"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxmellon/cue-parser",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -41,6 +41,9 @@
41
41
  "bugs": {
42
42
  "url": "https://github.com/MaxMEllon/cue-parser/issues"
43
43
  },
44
+ "publishConfig": {
45
+ "access": "public"
46
+ },
44
47
  "engines": {
45
48
  "node": ">=18.0.0"
46
49
  },