New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ember-cli-subdomain

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-subdomain

A simple addon that adds subdomain detection to an Ember application

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

ember-cli-subdomain

This simple add-on adds subdomain detection to an Ember application.

Options

This add-on is configured via your applications config/environment.js file. Only one property is used from your projects configuration:

  • subdomainMapping -- A javascript hash of subdomains you may want to map a unified, default value:

The default subdomainMapping value is:

//config/environment.js
subdomainMapping: {
  '': 'default',
  'www': 'default'
}

Usage

The initialization of the add-on makes it available to the route and controller:

initialize: function(container, application) {
  container.register('url-checker:main', urlChecker);
  application.inject('route', 'urlChecker', 'url-checker:main');
  application.inject('controller', 'urlChecker', 'url-checker:main');
}

Use the method subdomain of the injected urlChecker for your magics...

Keywords

ember-addon

FAQs

Package last updated on 20 Dec 2014

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