npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

no-subdomains

0.1.1 • Public • Published

no-subdomains

Redirects requests to subdomains to main domain (www.example.com => example.com)

It's really simple!

Install it via npm

express framework integration

// Express
var express = require('express'),
    app = express();
// Requre my package
var removeSubdomains = require('no-subdomains');
// Use it!
app.use(removeSubdomains());

install

npm i no-subdomains

Downloadsweekly downloads

8

version

0.1.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability