0.0.3 • Published 12 years ago

ncsa v0.0.3

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

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