New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lodash-amd

Package Overview
Dependencies
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-amd

A collection of Lo-Dash methods as AMD modules generated by lodash-cli.

  • 2.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.7K
decreased by-24.75%
Maintainers
4
Weekly downloads
 
Created
Source

lodash-amd v2.4.1

A collection of Lo-Dash methods as AMD modules generated by lodash-cli.

Packages

Define a build as 'lodash' (instead of 'lodash-amd/{build}')

require({
  'packages': [
    { 'name': 'lodash', 'location': 'lodash-amd/modern' }
  ]
}, ['lodash/collections/forEach'], function(forEach) {
  // use `forEach`
});

Migrations

Easily migrate Underscore code to Lo-Dash code.

require({
  'packages': [
    { 'name': 'lodash', 'location': 'lodash-amd/compat' },
    { 'name': 'underscore', 'location': 'lodash-amd/underscore' }
  ]
}, [], function() {});

When working with code that must have Underscore compatibility, just import the 'underscore' dependency. If you don’t need Underscore compatibility & want the benefits of Lo-Dash, import the 'lodash' dependency. You can even mix & match.

define(['underscore', 'lodash/objects/transform'], function(_, transform) {
  // use `_` prefixed code with underscore
  // use `transform` from lodash
});

Eventually, when Underscore compatibility is no longer needed, just switch your packages configuration.

require({
  'packages': [
    { 'name': 'lodash', 'location': 'lodash-amd/compat' },
    { 'name': 'underscore', 'location': 'lodash-amd/compat' }
  ]
}, [], function() {});

Author

twitter/jdalton
John-David Dalton

Contributors

twitter/blainebublitztwitter/kitcambridgetwitter/mathias
Blaine BublitzKit CambridgeMathias Bynens

Bitdeli Badge

Keywords

FAQs

Package last updated on 03 Dec 2013

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc