Skip to content
Lodash as ES6 Modules for Ember.js Apps
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
config fix: ESLint issues Nov 11, 2018
tests fix: update testing support to RFC-232 style Nov 12, 2018
vendor initial commit Jul 5, 2015
.editorconfig
.ember-cli
.eslintignore
.eslintrc.js
.gitignore feat: shared semantic-release and renovate config Nov 10, 2018
.npmignore
.prettierrc
.travis.yml chore: replace travis-deploy-once Travis deploy stage Dec 4, 2018
.watchmanconfig
CHANGELOG.md
LICENSE.md Prettier Jan 2, 2018
README.md
ember-cli-build.js
index.js fix: Use public API to diverge add-on name from the es6 module name t… Dec 3, 2018
package.json
renovate.json feat: shared semantic-release and renovate config Nov 10, 2018
testem.js feat: shared semantic-release and renovate config Nov 10, 2018
yarn.lock

README.md

ember-lodash

Build 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';

let truncatedString = _.trunc(rawString);

It is also possible to import individual modules

import { trunc } from 'lodash';

let truncatedString = trunc(rawString);

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://www.ember-cli.com/.

Analytics

You can’t perform that action at this time.