Skip to content

Commit

Permalink
Fix outdated usage
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Aug 25, 2023
1 parent 96e3fab commit e479596
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const buffer = await readFile('path/to/file.flac')
const tagsFromBuffer: FlacTags = await readFlacTags(buffer)

// read tag by vorbis comment name (case-insensitive)
const { title, artist, album } = tagsFromFile
const { title, artist, album } = tagsFromFile.tagMap
// read cover image
const coverBuffer = tagsFromFile.picture?.buffer
```

### Write FLAC Tags
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flac-tagger",
"version": "1.0.6",
"version": "1.0.7",
"description": "Pure JavaScript FLAC Tag writer and reader.",
"main": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
Expand Down

0 comments on commit e479596

Please sign in to comment.