# math.log1p

> An ES-spec-compliant Math.log1p shim/polyfill/replacement that works as far down as ES3

Latest version **1.0.6** (published 2023-09-06) · MIT license · 0 weekly downloads

> **Native alternative:** Math.log1p — Use native JavaScript (Node 0.10.0+) (https://developer.mozilla.orgGlobal_Objects/Math/log1p)

## Install

```sh
npm install math.log1p
pnpm add math.log1p
yarn add math.log1p
bun add math.log1p
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-09-06 |
| First published | 2020-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 17.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nicolò Ribaudo |
| Maintainers | ljharb |
| Keywords | Math.log1p, math, log1p, log, shim, polyfill, es-shim, API |

## Links

- npm: https://www.npmjs.com/package/math.log1p
- Repository: https://github.com/es-shims/Math.log1p
- Homepage: https://github.com/es-shims/Math.log1p#readme
- Issues: https://github.com/es-shims/Math.log1p/issues
- Funding: https://github.com/es-shims/Math.log1p?sponsor=1
- npm.io page: https://npm.io/package/math.log1p

## Dependencies (4)

- [call-bind](https://npm.io/package/call-bind.md) ^1.0.2
- [es-abstract](https://npm.io/package/es-abstract.md) ^1.22.1
- [get-intrinsic](https://npm.io/package/get-intrinsic.md) ^1.2.1
- [define-properties](https://npm.io/package/define-properties.md) ^1.2.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.6 (latest) — 2023-09-06
- 1.0.5 — 2022-11-04
- 1.0.4 — 2022-04-11
- 1.0.3 — 2021-12-14
- 1.0.2 — 2021-10-03
- 1.0.1 — 2020-12-25
- 1.0.0 — 2020-10-26

## README

# Math.log1p <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

An ESnext spec-compliant `Math.log1p` shim/polyfill/replacement that works as far down as ES3.

This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-math.log1p).

## Getting started

```sh
npm install --save math.log1p
```

## Usage/Examples

```js
var assert = require('assert');
var x = 0.007;

// Compute log(1 + x)
assert.equal(Math.log1p(x), 0.006975613736425242);

assert.equal(Math.log1p(6.3890560989306495), 2);
```

## Tests
Simply clone the repo, `npm install`, and run `npm test`

[package-url]: https://npmjs.org/package/math.log1p
[npm-version-svg]: https://versionbadg.es/es-shims/Math.log1p.svg
[deps-svg]: https://david-dm.org/es-shims/Math.log1p.svg
[deps-url]: https://david-dm.org/es-shims/Math.log1p
[dev-deps-svg]: https://david-dm.org/es-shims/Math.log1p/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/Math.log1p#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/math.log1p.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/math.log1p.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/math.log1p.svg
[downloads-url]: https://npm-stat.com/charts.html?package=math.log1p
[codecov-image]: https://codecov.io/gh/es-shims/Math.log1p/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/Math.log1p/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Math.log1p
[actions-url]: https://github.com/es-shims/Math.log1p/actions

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