Skip to content

Create AppleDouble files with NodeJS – useful to preserve OS X extended attributes in zip files or on non-HFS+ volumes

License

Notifications You must be signed in to change notification settings

rolftimmermans/node-xattr-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xattr-file

Create files that store OS X extended attributes (xattrs) in seperate files. These files are used on file systems other than HFS+ and in ZIP files. In ZIP files they are named __MACOSX/._<file name>.

The format of xattr files is the legacy AppleDouble format, that contains a "Finder Info" resource fork, which in turn contains extended attributes. OS X ignores all other information in the AppleDouble file.

Installing

npm install xattr-file

Using

var xattr = require("xattr-file");
var buffer = xattr.create({
  "com.example.Attribute": "my data"
});

/* Use buffer in zip file, or write to __MACOSX/._file. */

About

Create AppleDouble files with NodeJS – useful to preserve OS X extended attributes in zip files or on non-HFS+ volumes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published