#node-xattr
node-xattr is a native module wrapping xattr to read and set extended attributes on files.
npm install xattr
node-waf configure && node-waf build && node-waf install
var xattr = require("xattr");
Get all the extended attributes on a file, returns obj
var attrs = xattr.list("/path/to/file");
Set an extended attribute on a file. Note at thie moment you can only set string values.
xattr.set("/path/to/file", "someAttribute", "someValue");