Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ensure-https-www

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ensure-https-www

Ensure your domain redirects non-https non-www requests appropriately.

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ensure-https-www

npm-version build-status dependencies dev-dependencies

Ensure your domain redirects non-https non-www requests appropriately.

Example

Here's how a properly configured domain looks:

$ ensure-https-www soundcasts.net /bundle.js
PASS                http://soundcasts.net => https://www.soundcasts.net/
PASS            http://www.soundcasts.net => https://www.soundcasts.net/
PASS               https://soundcasts.net => https://www.soundcasts.net/
PASS           https://www.soundcasts.net => https://www.soundcasts.net/
PASS      http://soundcasts.net/bundle.js => https://www.soundcasts.net/bundle.js
PASS  http://www.soundcasts.net/bundle.js => https://www.soundcasts.net/bundle.js
PASS     https://soundcasts.net/bundle.js => https://www.soundcasts.net/bundle.js
PASS https://www.soundcasts.net/bundle.js => https://www.soundcasts.net/bundle.js

And here's how an improperly configured domain looks:

$ ensure-https-www nytimes.com /es/
FAIL          http://nytimes.com => https://www.nytimes.com/ expected, but got http://www.nytimes.com/
PASS      http://www.nytimes.com => https://www.nytimes.com/
FAIL         https://nytimes.com => https://www.nytimes.com/ expected, but got http://www.nytimes.com/
FAIL     https://www.nytimes.com => https://www.nytimes.com/ expected, but got http://www.nytimes.com/
FAIL      http://nytimes.com/es/ => https://www.nytimes.com/es/ expected, but got http://www.nytimes.com/es/
PASS  http://www.nytimes.com/es/ => https://www.nytimes.com/es/
FAIL     https://nytimes.com/es/ => https://www.nytimes.com/es/ expected, but got http://www.nytimes.com/es/
PASS https://www.nytimes.com/es/ => https://www.nytimes.com/es/

Usage

usage: ensure-https-www <domain> <path>

domain
  the non-www domain you want to test
  example: soundcasts.net

path
  a path you want to test
  example: /bundle.js

Keywords

FAQs

Package last updated on 14 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc