0.1.0 • Published 9 years ago

aupr v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

aupr

AUPR -> auth-user-password-rights

Installation

$ npm install aupr

Basic usage

var express = require('express');
var app = express();
var aupr = require('aupr');

aupr.parseAuthData("MariaUshiromiya:beatrice:r,EnmaAi:revenge:rw");
// or aupr.parseAuthData([{name: 'MariaUshiromiya', pass: 'beatrice', permission: {read: true, write: false}},{name: 'EnmaAi', pass: 'revenge', permission: {read: true, write: true}}]);

app.use(aupr.auth);

License (MIT)