Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-id3

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-id3

Pure JavaScript ID3 Tag writer

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
75K
increased by6.47%
Maintainers
1
Weekly downloads
 
Created
Source

node-id3

node-id3 is a ID3-Tag library written in JavaScript without other dependencies.

Right now, there's only write, remove and partial read support (only ID3v2)

Example:

var nodeID3 = require('node-id3');

//tags.image is the path to the image (only png/jpeg files allowed)
var tags = {
  title: "Soshite Bokura wa",
  artist: "Ray",
  album: "Nagi no Asukara",
  composer: "Nakazawa Tomoyuki",
  image: "./example/image.jpeg"
}

nodeID3.removeTags("./example/music.mp3")

//Pass tags and filepath
var success = nodeID3.write(tags, "./example/music.mp3");

//returns true if written correctly
console.log(success);

//Pass filepath/buffer
var read = nodeID3.read("./example/music.mp3");

//returns tags
console.log(read);

###Write ID3v2-Tags

//Pass tags and filepath
var success = nodeID3.write(tags, "./example/music.mp3");
//returns true if written correctly
console.log(success);

###Read ID3v2-Tags (currently no support for images)

//Pass filepath/buffer
var read = nodeID3.read("./example/music.mp3");
//returns tags
console.log(read);

###Remove ID3v2-Tags

nodeID3.removeTags("./example/music.mp3");  //Pass the path to the mp3 file

###Supported tag keys (only pass strings)

image:
album:
bpm:
composer:
genre:
copyright:
date:
playlistDelay:
encodedBy:
textWriter:
fileType:
time:
contentGroup:
title:
subtitle:
initialKey:
language:
length:
mediaType:
originalTitle:
originalFilename:
originalTextwriter:
originalArtist:
originalYear:
fileOwner:
artist:
performerInfo:
conductor:
remixArtist:
partOfSet:
publisher:
trackNumber:
recordingDates:
internetRadioName:
internetRadioOwner:
size:
ISRC:
encodingTechnology:
year:

Keywords

FAQs

Package last updated on 08 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc