Native module to set fs extended attributes cross platform
MIT License
Native module to do cross platform file attributes.
npm install fs-extended-attributes
Uses setxattr, getxattr on Linux / Mac and Alternate Data Streams on Windows (NTFS)
const fsx = require('fs-extended-attributes')
// assuming index.js exists as a file
fsx.set('./index.js', 'user.foo', 'hello', function () {
fsx.get('./index.js', 'user.foo', console.log)
})
There is also a CLI
npm install -g fs-extended-attributes
fsx set ./index.js user.foo hello
fsx get ./index.js user.foo # prints hello
MIT