Socket
Book a DemoInstallSign in
Socket

ember-normalize-url

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-normalize-url

A wrapper add-on for the normalize-url node package.

0.0.3
latest
Source
npmnpm
Version published
Weekly downloads
1
-80%
Maintainers
1
Weekly downloads
 
Created
Source

ember-normalize-url

An Ember add-on wrapper for the normalize-url node package.

Install

ember install ember-normalize-url

Usage

Import the add-on as a basic shim:

import normalizeUrl from 'normalize-url';

export default Ember.Component.extend({
  coolUrl: normalizeUrl('twitter.com') // coolUrl === http://twitter.com
});

Or use the included helper in your templates:

{{#badass-urls as |url|}}
  {{normalize-url url}}
{{/badass-urls}}

normalize-url options work as well:

{{normalize-url someUrl normalizeProtocol=false stripWWW=false}}

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

Keywords

ember-addon

FAQs

Package last updated on 06 Sep 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.