Comments (5)
Hi,
node-id3 is for node.js, like you've mentioned, which is basically JavaScript outside of the browser.
This means that you have to install node.js first ( https://nodejs.org/en/ ).
After installing node.js, you need to create a package, which will be your application (you don't have to but I think it's the easiest way and best to learn about the node.js eco-system).
Open the cmd, switch to the desired folder to create your package and enter:
npm init
This will ask you some questions, you can just enter the name and skip everything else with the enter key.
After that, you can install node-id3 from the node.js package manager by typing:
npm install node-id3
By default, your main file for your package will be called "index.js", which you'll have to create in the same folder as the package.json.
When you've created the "index.js" file, open/edit it and enter:
var nodeID3 = require('node-id3');
at the beginning.
Now you can use it like shown in the example of the Readme.
For example, if you want to read the tags of a file, your index.js would look like this:
var nodeID3 = require('node-id3');
var read = nodeID3.read("C:/path/to/some/music.mp3");
console.log(read); //to print them
to execute your script, write into the cmd:
npm start
or
node index.js
from node-id3.
Thanks a million times!!!!
Can't express how much this helps.
from node-id3.
Sure, if you encounter any problems, feel free to create another issue!
from node-id3.
Hi,
I am not getting to read the time and the originalFilename fields of the tag... These fields returns undefined. How could I solve that?
Thanks!
from node-id3.
@G-Buen0 time and filename will only return a value if they are set in the tag (which is unlikely for most mp3s). If you think they are, I'd suggest you create a new issue and upload the mp3 that has the problem, then I can take a look at it
from node-id3.
Related Issues (20)
- Explain in docs that `write` doesn't create new file =) HOT 4
- "releaseTime" tag not read from AIFF file HOT 6
- Duration not supported HOT 1
- Add constants for obscure tag values HOT 7
- update function does not take v4 tags into account
- Changes and fixes for new API release
- Updating tags in AIFF files makes tags/audio unreadable by other applications HOT 5
- Incorrect timestamps on Syncronized lyrics HOT 16
- Setting synchronisedLyrics to undefined throws an error HOT 4
- [BuG] MP3 File is corrupted HOT 8
- Not reading id3v1 HOT 1
- Support for audio formats other than mp3 HOT 4
- Support large files HOT 2
- Issues with metadata being read by certain players HOT 2
- Basic adding tags not working HOT 5
- iTunes/Apple Music GRP1 grouping tag is not supported
- Possible song corruption when editing metadata while playing the song. HOT 5
- Using CTOC Entry Count byte causes issue with large number of entries HOT 8
- Support Different Text Encodings
- Could you update 0.2.7 version? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-id3.