# functions-have-names

> Does this JS environment support the `name` property on functions?

Latest version **1.2.3** (published 2022-04-19) · MIT license · 0 weekly downloads

> **Native alternative:** Always `true` — Use native JavaScript (Node 0.10.0+) (https://developer.mozilla.orgGlobal_Objects/Function/name)

## Install

```sh
npm install functions-have-names
pnpm add functions-have-names
yarn add functions-have-names
bun add functions-have-names
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2022-04-19 |
| First published | 2019-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/functions-have-names) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Jordan Harband |
| Maintainers | ljharb |
| Keywords | function, name, es5, names, functions, ie |

## Links

- npm: https://www.npmjs.com/package/functions-have-names
- Repository: https://github.com/inspect-js/functions-have-names
- Homepage: https://github.com/inspect-js/functions-have-names#readme
- Issues: https://github.com/inspect-js/functions-have-names/issues
- Funding: https://github.com/sponsors/ljharb
- npm.io page: https://npm.io/package/functions-have-names

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.2.3 (latest) — 2022-04-19
- 1.2.2 — 2020-12-14
- 1.2.1 — 2020-01-20
- 1.2.0 — 2019-10-21
- 1.1.1 — 2019-07-24
- 1.1.0 — 2019-07-23
- 1.0.0 — 2019-07-23

## README

# functions-have-names <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]

Does this JS environment support the `name` property on functions?

## Example

```js
var functionsHaveNames = require('functions-have-names');
var assert = require('assert');

assert.equal(functionsHaveNames(), true); // will be `false` in IE 6-8
```

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

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

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