1.0.3 • Published 7 years ago

file-attributes v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Per file attributes

Just a simple per-file attributes system

var kv = require('file-attributes');

var attributes = kv("/path/to/disk"); // where to store

attributes.set("/home/user/documents/file.txt", JSON.stringify({
  ready: true,
  signed: false
}), function(err, data) {
  // on success/failure
});

attributes.get("/home/user/documents/file.txt", (err, data) => {
  if (err) {
    // fail
  }

  data = JSON.parse(data);
});
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago