Closed DavNej closed 2 months ago
10.3.1
Using Bun as runtime, the console remains idle when parseFile is called.
parseFile
Here is the following code. This code works well with npm and tsx.
npm
tsx
Also, on line 1, I get the following error from typescript: Module '"music-metadata"' has no exported member 'parseFile'
Module '"music-metadata"' has no exported member 'parseFile'
import { parseFile } from 'music-metadata' import { inspect } from 'util' const filePath = '/path/to/file.mp3' async function main() { try { const metadata = await parseFile(filePath) console.log(inspect(metadata, { showHidden: false, depth: null })) } catch (error) { console.error('Error parsing metadata:', error.message) } } await main()
Should read properly the metadata of the given file
Bun explicitly has a policy if it works in Node but not in Bun, it is a Bun bug, you should report it there.
Is there an existing issue for this?
music-metadata version
10.3.1
Current Behavior
Using Bun as runtime, the console remains idle when
parseFile
is called.Here is the following code. This code works well with
npm
andtsx
.Also, on line 1, I get the following error from typescript:
Module '"music-metadata"' has no exported member 'parseFile'
Expected Behavior
Should read properly the metadata of the given file
Attached audio sample?