An Ember add-on wrapper for the normalize-url node package.
ember install ember-normalize-url
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:
normalize-url options work as well:
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.