JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q46885F
  • License WTFPL

Read/Write NCSA password files.

Package Exports

  • ncsa

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ncsa) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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