Skip to content

Commit

Permalink
Rename package from random-obj-key to random-object-key
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 9, 2024
1 parent 1c0bb2d commit f7763ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Get a random key from an object.
@example
```
import randomObjectKey from 'random-obj-key';
import randomObjectKey from 'random-object-key';
randomObjKey({foo: true, bar: true});
//=> 'bar'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "random-obj-key",
"name": "random-object-key",
"version": "3.0.0",
"description": "Get a random key from an object",
"license": "MIT",
"repository": "sindresorhus/random-obj-key",
"repository": "sindresorhus/random-object-key",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# random-obj-key
# random-object-key

> Get a random key from an object
## Install

```sh
npm install random-obj-key
npm install random-object-key
```

## Usage

```js
import randomObjectKey from 'random-obj-key';
import randomObjectKey from 'random-object-key';

randomObjectKey({foo: true, bar: true});
//=> 'bar'
Expand Down

0 comments on commit f7763ee

Please sign in to comment.