@@ -4,7 +4,7 @@ node-taglib
4
4
node-taglib is a simple binding to
5
5
[ TagLib] ( http://developer.kde.org/~wheeler/taglib/ ) in Javascript.
6
6
7
- It requires [ node.js] ( http://nodejs.org ) .
7
+ It requires [ node.js] ( http://nodejs.org ) and taglib header files (on Debian systems, install ` libtag1-dev ` ) .
8
8
9
9
node-taglib offers only an abstract interface without giving access to extended
10
10
file-specific attributes. It does allow custom resolvers though. Synchronous
@@ -17,26 +17,28 @@ certain bugs present in the released v1.7 cause problems.**
17
17
18
18
## Example
19
19
20
- // load the library
21
- var taglib = require('taglib');
20
+ ``` js
21
+ // load the library
22
+ var taglib = require (' taglib' );
22
23
23
- // asynchronous API
24
- taglib.tag(path, function(err, tag) {
25
- tag.artist; // => "Queen"
26
- tag.title = "Erm";
27
- tag.saveSync();
28
- });
24
+ // asynchronous API
25
+ taglib .tag (path, function (err , tag ) {
26
+ tag .artist ; // => "Queen"
27
+ tag .title = " Erm" ;
28
+ tag .saveSync ();
29
+ });
29
30
30
- // synchronous API
31
- var tag = taglib.tagSync(path);
31
+ // synchronous API
32
+ var tag = taglib .tagSync (path);
32
33
33
- tag.title; // => "Another one bites the dust"
34
- tag.artist; // => "Kween"
35
- tag.artist = "Queen";
34
+ tag .title ; // => "Another one bites the dust"
35
+ tag .artist ; // => "Kween"
36
+ tag .artist = " Queen" ;
36
37
37
- tag.isEmpty(); // => false
38
+ tag .isEmpty (); // => false
38
39
39
- tag.saveSync(); // => true
40
+ tag .saveSync (); // => true
41
+ ```
40
42
41
43
## Installation
42
44
0 commit comments