url-beautifier

1.0.1 • Public • Published

Connect Url Beautifier

A Node Connect middleware for beautiful URLs

Install

npm install url-beautifier --save

Usage

var connect = require('connect')
var urlBeautifier = require('url-beautifier')
var http = require('http')
 
var options = {}
var app = connect()
app.use(urlBeautifier(options))
http.createServer(app).listen(3000)

API

options.extension

Type: String Default: html

The file extension to complete

options.notFoundPage

Type: String Default: /404.html

Custom not found page (optional)

options.basePath

Type: String Default: /public

The base path to check file existence

Package Sidebar

Install

npm i url-beautifier

Weekly Downloads

2

Version

1.0.1

License

none

Last publish

Collaborators

  • willgm