petoem / aupr

AUPR -> auth-user-password-rights

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

AUPR -> auth-user-password-rights

License:MIT License


Languages

Language:JavaScript 100.0%