43081j / id3

A JavaScript ID3 tags parser for Node & browsers.
MIT License
335 stars 63 forks source link

Gulp build + browser compatibility #40

Closed inorganik closed 5 years ago

inorganik commented 5 years ago

Hi, I wanted to use this with the intention of reading ID3 tags in the browser, but ran into issues because fs is undefined in the browser. So I had to omit parts of reader.js to make it work - and since the dist file is built manually I automated it with gulp. The the default build (what is shipped in dist) is just as you have it now, or you can run yarn build:browser to get a more browser friendly version. I've included build instructions in the README.