Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loadsh

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadsh - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

_apply.js

88

package.json
{
"name": "loadsh",
"version": "0.0.3",
"description": "You don't need 70 Kb lodash.",
"main": "lib/index.js",
"scripts": {
"test": "NODE_ENV=babel jest",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"build:umd": "rimraf ./dist && cross-env NODE_ENV=rollup rollup -c",
"build:lib": "rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib",
"build": "npm run test && npm run build:lib && npm run build:umd && size-limit",
"deploy": "gh-pages -d page"
"author": {
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
"size-limit": [
"bugs": {
"url": "https://github.com/lodash/lodash/issues"
},
"bundleDependencies": false,
"contributors": [
{
"limit": "1.5 KB",
"path": "dist/loadsh.min.js"
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
{
"name": "Mathias Bynens",
"email": "mathias@qiwi.be",
"url": "https://mathiasbynens.be/"
}
],
"jest": {
"testRegex": "(/__tests__/.*spec)\\.(js)$",
"collectCoverage": true,
"setupFiles": [],
"transform": {
"^.*\\.js?$": "babel-jest"
},
"collectCoverageFrom": [
"src/**/*.{js}"
]
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-jest": "^23.6.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-env": "^1.6.1",
"cross-env": "^5.1.3",
"gh-pages": "^1.2.0",
"jest": "^23.6.0",
"lodash": "^4.17.11",
"rimraf": "^2.6.2",
"rollup": "^0.58.1",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-uglify": "^3.0.0",
"size-limit": "^0.18.2"
},
"deprecated": false,
"description": "Lodash modular utilities.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"keywords": [
"modules",
"stdlib",
"util"
],
"license": "MIT",
"main": "lodash.js",
"name": "loadsh",
"repository": {
"type": "git",
"url": "git+https://github.com/hustcc/loadsh.git"
"url": "git+https://github.com/lodash/lodash.git"
},
"keywords": [
"lodash",
"loadsh",
"utilities",
"helper"
],
"author": "hustcc",
"license": "ISC",
"bugs": {
"url": "https://github.com/hustcc/loadsh/issues"
"scripts": {
"test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\""
},
"homepage": "https://github.com/hustcc/loadsh#readme"
}
"version": "0.0.4"
}

@@ -1,60 +0,39 @@

# loadsh
# lodash v4.17.11
> Replace [lodash](https://github.com/lodash/lodash) with smaller bundle size.
The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
## Installation
[![npm](https://img.shields.io/npm/v/loadsh.svg)](https://www.npmjs.com/package/loadsh)
[![npm](https://img.shields.io/npm/dm/loadsh.svg)](https://www.npmjs.com/package/loadsh)
[![gzip](http://img.badgesize.io/https://unpkg.com/loadsh/dist/loadsh.min.js?compression=gzip)](https://unpkg.com/loadsh/dist/loadsh.min.js)
Using npm:
```shell
$ npm i -g npm
$ npm i --save lodash
```
## Install
> npm i --save loadsh
Then import it.
In Node.js:
```js
import _ from 'loadsh';
```
// Load the full build.
var _ = require('lodash');
// Load the core build.
var _ = require('lodash/core');
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
var fp = require('lodash/fp');
or import it by `script` in HTML, then get `_` on window.
// Load method categories.
var array = require('lodash/array');
var object = require('lodash/fp/object');
```html
<script src="https://unpkg.com/loadsh/dist/loadsh.min.js"></script>
// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
var at = require('lodash/at');
var curryN = require('lodash/fp/curryN');
```
See the [package source](https://github.com/lodash/lodash/tree/4.17.11-npm) for more details.
**Note:**<br>
Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL.
## Usage
## Support
Document same with lodash [here](https://lodash.com/docs/4.17.10).
## Import
Use with `babel-plugin-import` with configure.
```js
[
"import",
[{
"libraryName": "loadsh",
"libraryDirectory": "lib",
"camel2DashComponentName": false,
}]
]
```
# License
ISC@[hustcc](https://github.com/hustcc).
Tested in Chrome 68-69, Firefox 61-62, IE 11, Edge 17, Safari 10-11, Node.js 6-10, & PhantomJS 2.1.1.<br>
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available.
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