Skip to content

Commit

Permalink
[readme] add docs, fix URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 14, 2020
1 parent 45ab0cb commit fad3af6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,34 @@
# functions-have-names
# functions-have-names <sup>[![Version Badge][2]][1]</sup>

[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][11]][1]

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`

[1]: https://npmjs.org/package/functions-have-names
[2]: https://versionbadg.es/inspect-js/functions-have-names.svg
[5]: https://david-dm.org/inspect-js/functions-have-names.svg
[6]: https://david-dm.org/inspect-js/functions-have-names
[7]: https://david-dm.org/inspect-js/functions-have-names/dev-status.svg
[8]: https://david-dm.org/inspect-js/functions-have-names#info=devDependencies
[11]: 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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/ljharb/functions-have-names.git"
"url": "git+https://github.com/inspect-js/functions-have-names.git"
},
"keywords": [
"function",
Expand All @@ -31,9 +31,9 @@
},
"license": "MIT",
"bugs": {
"url": "https://github.com/ljharb/functions-have-names/issues"
"url": "https://github.com/inspect-js/functions-have-names/issues"
},
"homepage": "https://github.com/ljharb/functions-have-names#readme",
"homepage": "https://github.com/inspect-js/functions-have-names#readme",
"devDependencies": {
"@ljharb/eslint-config": "^16.0.0",
"aud": "^1.1.0",
Expand Down

0 comments on commit fad3af6

Please sign in to comment.