trabus / ember-lodash

Lodash 3.x as ES6 Modules for Ember.js Apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ember-lodash

Build Status Dependency Status devDependency Status Ember Observer Score npm version Code Climate

This ember addon allows consumption of the lodash library (its ES6 module variant) in ember-cli apps.

Use

First you install this addon

# ember-cli > 0.2.3
ember install ember-lodash
# ember-cli <= 0.2.3
ember install:addon ember-lodash

And then in your ember.js app, you can import individual lodash modules freely

import _string from 'lodash/string';

let truncatedString = _string.trunc(rawString);

Additionally, if you wish to work with the entire lodash library on a single namespace, you have the option of importing that as well

import _ from 'lodash/lodash';

let truncatedString = _.trunc(rawString);

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

Analytics

About

Lodash 3.x as ES6 Modules for Ember.js Apps

License:MIT License


Languages

Language:JavaScript 82.5%Language:HTML 17.5%