node package manager


Read/Write NCSA password files.


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.

  • Node.js >= 0.8.0
npm install pass

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, function(err, res) {

    // Modify ncsa object
    res['donaldduck'] = 'plaintext!';

    // Async write
    ncsa.write(path, res, function(err) {