# lodashed

> Lo-Dash, Underscore.string + some other useful functions in a single, powerful _

Latest version **0.1.2** (published 2013-12-09) · 0 weekly downloads

## Install

```sh
npm install lodashed
pnpm add lodashed
yarn add lodashed
bun add lodashed
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2013-12-09 |
| First published | 2013-07-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Gustavo Henke |
| Maintainers | gustavohenke |

## Links

- npm: https://www.npmjs.com/package/lodashed
- Repository: https://github.com/gustavohenke/lodashed
- Issues: https://github.com/gustavohenke/lodashed/issues
- npm.io page: https://npm.io/package/lodashed

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ~2.4.0
- [underscore.string](https://npm.io/package/underscore.string.md) 2.3.3

## Recent versions

- 0.1.2 (latest) — 2013-12-09
- 0.1.1 — 2013-11-13
- 0.1.0 — 2013-10-17
- 0.0.2 — 2013-09-16
- 0.0.1 — 2013-07-27

## README

# LoDashed [![Build Status](https://travis-ci.org/gustavohenke/lodashed.png)](https://travis-ci.org/gustavohenke/lodashed) [![Dependency Status](https://gemnasium.com/gustavohenke/lodashed.png)](https://gemnasium.com/gustavohenke/lodashed) [![NPM version](https://badge.fury.io/js/lodashed.png)](http://badge.fury.io/js/lodashed)

Lo-Dash, Underscore.string + some other useful functions in a single, powerful `_`.

## The "other" functions

#### `.type( [variable] )`
Return the type of a variable as a string.

```javascript
_.type([]); // => array
_.type(new Array()); // => array
_.type({}); // => object
_.type(new Object()); // => object
```

#### `.uncapitalize( [str] )`
Uncapitalize an string.

```javascript
_.uncapitalize( "I AM MAD!" ); // "i AM MAD!"
_.uncapitalize( "you're my hero!" ); // "you're my hero!"
```

#### `.replaceAll( str, token, newToken[, ignoreCase])`
Replace all occurrences of an string, optionally checking the case.

```javascript
_.replaceAll( "Anakin Skywalker was the best jedi!", "Anakin", "Luke" ); // => Luke Skywal...
_.replaceAll( "Anakin Skywalker was the best jedi!", "anakin", "Luke" ); // => Anakin Skywal...
_.replaceAll( "Anakin Skywalker was the best jedi!", "anakin", "Luke", true ); // => Luke Skywal...
```

#### `.uuid()`
Returns an UUID v4.

```javascript
_.uuid(); // => "9279f99f-0525-4079-95a6-3580ef272e71"
```

#### `.byteFormat( bytes[, decimals=0][, decimalSeparator="."][, orderSeparator=","] )`
Format an byte size, e.g. 1024 becomes 1 KB. You can also customize the output by providing how much `decimals` you want and a `decimalSeparator` and `orderSeparator`.

```javascript
_.byteFormat( 1024 ); // => "1 KB"
_.byteFormat( 1024 * 100 ); // => "100 KB"
```

## Tests
Run the following commands inside the project root:

```shell
npm install -d
npm test
```

## License
MIT

---
_Source: https://npm.io/package/lodashed · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
