Giter Club home page Giter Club logo

Comments (5)

Zazama avatar Zazama commented on August 22, 2024

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.

GiladFex avatar GiladFex commented on August 22, 2024

Thanks a million times!!!!
Can't express how much this helps.

from node-id3.

Zazama avatar Zazama commented on August 22, 2024

Sure, if you encounter any problems, feel free to create another issue!

from node-id3.

G-Buen0 avatar G-Buen0 commented on August 22, 2024

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.

Zazama avatar Zazama commented on August 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.