Code Monkey home page Code Monkey logo

node-id3v2.4's Introduction

####node-id3v2.4

###node id3 tagger

  • read/write ID3v2.3 / ID3v2.4 tags
  • use/convert encodings 'ISO-8859-1','UTF-16',(ID3v2.4)'UTF-16BE','UTF-8'
  • add, convert (imagemagic) and extract images ('APIC')

###Installation

  npm install node-id3v2.4

##Include To use the library:

  const nodeID3v2 = require('node-id3v2.4');

To read a tag:

  let tag = nodeID3v2.readTag(filename);

###node-id3tag After installation 'node-id3tag' command will also be available for use in shell/cmd.

##Help: you can try to get help on 'topic' (and 'subtopic')

    node-id3tag [-?|-h]
    node-id3tag -? picturetype
    node-id3tag -h frametype image

##List tag with:

    node-id3tag -l 'path/to/file.mp3'

##Add frame:

    node-id3tag -af artist,'the artists name' 'path/to/file.mp3'

##Add frame and list tag:

    node-id3tag -l -af image,'path/to/image','picturetype' 'path/to/file.mp3'

##Tag is not writen until you add '-u' argument:

    node-id3tag -l -u -af TXXX,'my description','my text' 'path/to/file.mp3'

##Remove frame:

    node-id3tag -u -RF title 'path/to/file.mp3'

##Remove ambiguous frame with:

    node-id3tag -u -RF TXXX 'path/to/file.mp3'

gives a message:

    [-1] : removeFrame: insufficient criteria: ''. should be 'description'

so you have to:

  node-id3tag -u -RF TXXX,'my description' 'path/to/file.mp3'

##Notes:

There are many media files in the wild with malformed tags or frames, which sometimes leads to unpredictable behaviour.

TODO:

  • support for all possible frame types
  • use 'template' approach for reading in data ( add Buffer.eat() )
  • clean code
  • improve stability with malformed tags/frames

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.