1.0.2 • Published 3 years ago

xattr-async v1.0.2

Weekly downloads
4
License
-
Repository
github
Last release
3 years ago

xattr-async

Async library for getting and setting extended attributes on files.

Install

$ npm install xattr-async

API

xattr.list(path, callback(err, listOfAttrs))

List of attributes (names).

xattr.get(path, name, callback(err, attr))

Get attribute.

xattr.set(path, name, value, callback(err))

Set attribute.

xattr.remove(path, name, callback(err))

Remove attribute.

xattr.llist(path, callback(err, listOfAttrs))

Like list, except it doesn't follow symlinks.

xattr.lget(path, name, callback(err, attr))

Like get, except it doesn't follow symlinks.

xattr.lset(path, name, value, callback(err))

Like set, except it doesn't follow symlinks.

xattr.lremove(path, name, callback(err))

Like remove, except it doesn't follow symlinks.

Running tests

$ npm test

Authors

Crafted by highly motivated engineers at Koofr and, hopefully, making your day just a little bit better.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

8 years ago

0.1.3

10 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago