Skip to content

btakita/node-file-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-file-status

read/write process metadata to the file system

Usage

var fileStatus = require('file-status');
var path = require('path');
var path2 = path.join(__dirname, 'tmp', 'server.status.json');
fileStatus.write(path2, {custom: 'data'});
// Writes {pid: process.pid, mtime: new Date(), custom: 'data'} to __dirname/tmp/server.status.json
console.info(fileStatus.read(path2));
// {pid: process.pid, mtime: new Date(), custom: 'data'}

About

read/write process metadata on the file system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages