An open API service indexing awesome lists of open source software.

https://github.com/wdalmut/file-attributes

Simple per-file attributes system
https://github.com/wdalmut/file-attributes

attributes file file-attributes library

Last synced: over 1 year ago
JSON representation

Simple per-file attributes system

Awesome Lists containing this project

README

          

# Per file attributes

Just a simple per-file attributes system

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