htaccess-parser
v0.1.0
Published
An .htaccess rewrite rules parser.
Downloads
170
Maintainers
Readme
htaccess-parser
An .htaccess rewrite rules parser.
Used by the express-htaccess-middleware module to rewrite URLs.
Installation
npm i htaccess-parser
Usage
var path = require('path');
var htaccessParser = require('htaccess-parser');
htaccessParser({
file: path.resolve(__dirname, '.htaccess')
},
function(err, parsedFile) {
console.log(parsedFile);
});