
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
lodash-amd
Advanced tools
A collection of Lo-Dash methods as AMD modules generated by lodash-cli.
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`
});
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() {});
John-David Dalton |
Blaine Bublitz | Kit Cambridge | Mathias Bynens |
FAQs
Lodash exported as AMD modules.
The npm package lodash-amd receives a total of 5,458 weekly downloads. As such, lodash-amd popularity was classified as popular.
We found that lodash-amd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.