Skip to content

Native Node Module to get/set extended filesystem attributes

Notifications You must be signed in to change notification settings

aswarren/node-xattr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#node-xattr

node-xattr is a native module wrapping xattr to read and set extended attributes on files.

Install

npm install xattr

Build

node-waf configure && node-waf build && node-waf install

usage

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");

About

Native Node Module to get/set extended filesystem attributes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 51.0%
  • JavaScript 49.0%