# lodash.tonumber

> The Lodash method `_.toNumber` exported as a module.

Latest version **4.18.0** (published 2026-03-31) · MIT license · 0 weekly downloads

> **Better alternative:** See documentation for alternatives (https://github.com/AikidoSec/module-replacements/blob/main/docs/lodash-underscore)

## Install

```sh
npm install lodash.tonumber
pnpm add lodash.tonumber
yarn add lodash.tonumber
bun add lodash.tonumber
```

## Health

**Score 68/100 (B)** — status: active.

Positive: has types package; no vulnerabilities; high maintenance score; high quality score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 4.18.0 |
| Published | 2026-03-31 |
| First published | 2016-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/lodash.tonumber) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 61279 |
| Author | John-David Dalton |
| Maintainers | mathias, jdalton |
| Keywords | lodash-modularized, tonumber |

## Links

- npm: https://www.npmjs.com/package/lodash.tonumber
- Repository: https://github.com/lodash/lodash
- Homepage: https://lodash.com/
- Issues: https://github.com/lodash/lodash/issues
- npm.io page: https://npm.io/package/lodash.tonumber

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 4.18.0 (latest) — 2026-03-31
- 4.0.3 — 2016-08-13
- 4.0.2 — 2016-04-03
- 4.0.1 — 2016-02-03
- 4.0.0 — 2016-01-13

## README

# lodash.tonumber v4.18.0

The [Lodash](https://lodash.com/) method `_.toNumber` exported as a [Node.js](https://nodejs.org/) module.

## Installation

Using npm:
```bash
$ {sudo -H} npm i -g npm
$ npm i --save lodash.tonumber
```

In Node.js:
```js
var toNumber = require('lodash.tonumber');
```

See the [documentation](https://lodash.com/docs#toNumber) or [package source](https://github.com/lodash/lodash/blob/4.18.0-npm-packages/lodash.tonumber) for more details.

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