ncsa
v0.0.3
Published
Read/Write NCSA password files.
Downloads
9
Readme
node-ncsa
NCSA files are used for authentication throughout several applications. Two of the most prominent ones would be the Apache webserver and the Squid HTTP proxy. This modules allows to read and parse as well as edit write such files.
Requirements
- Node.js >= 0.8.0
Installation
npm install pass
Usage
Here's a litte example on how to use this module in an asynchronous manner:
// Init NCSA mudule
var ncsa = require('./ncsa');
var path = './test_data/test.passwd';
// Async Read
ncsa.read(path, function(err, res) {
// Modify ncsa object
res['donaldduck'] = 'plaintext!';
// Async write
ncsa.write(path, res, function(err) {
console.log('hurra!');
});
});
License
WTFPL - http://sam.zoy.org/wtfpl/COPYING