ncsa

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ncsa

Weekly Downloads

10

Version

0.0.3

License

WTFPL

Last publish

Collaborators

  • rgeber