Skip to content

wdalmut/file-attributes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple per-file attributes system

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published