vaca 3.0.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +12 -0
  2. package/package.json +13 -8
  3. package/readme.md +14 -1
package/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ Get a random ASCII cow.
3
+
4
+ @example
5
+ ```
6
+ import vaca from 'vaca';
7
+
8
+ console.log(vaca());
9
+ //=> '...'
10
+ ```
11
+ */
12
+ export default function vaca(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vaca",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "Get a random ASCII cow 🐮",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/vaca",
@@ -12,15 +12,20 @@
12
12
  },
13
13
  "type": "module",
14
14
  "bin": "./cli.js",
15
+ "exports": {
16
+ "types": "./index.d.ts",
17
+ "default": "./main.js"
18
+ },
15
19
  "engines": {
16
- "node": ">=18"
20
+ "node": ">=20"
17
21
  },
18
22
  "scripts": {
19
23
  "test": "xo && ava"
20
24
  },
21
25
  "files": [
22
26
  "main.js",
23
- "cli.js"
27
+ "cli.js",
28
+ "index.d.ts"
24
29
  ],
25
30
  "keywords": [
26
31
  "cli-app",
@@ -33,13 +38,13 @@
33
38
  "random"
34
39
  ],
35
40
  "dependencies": {
36
- "cows": "^3.0.0",
41
+ "cows": "^3.0.1",
37
42
  "indent-string": "^5.0.0",
38
- "meow": "^13.2.0",
39
- "unique-random-array": "^3.0.0"
43
+ "meow": "^14.0.0",
44
+ "unique-random-array": "^4.0.0"
40
45
  },
41
46
  "devDependencies": {
42
- "ava": "^6.1.2",
43
- "xo": "^0.58.0"
47
+ "ava": "^6.4.1",
48
+ "xo": "^1.2.3"
44
49
  }
45
50
  }
package/readme.md CHANGED
@@ -7,11 +7,24 @@
7
7
  ## Install
8
8
 
9
9
  ```sh
10
- npm install --global vaca
10
+ npm install vaca
11
11
  ```
12
12
 
13
13
  ## Usage
14
14
 
15
+ ```js
16
+ import vaca from 'vaca';
17
+
18
+ console.log(vaca());
19
+ //=> '...'
20
+ ```
21
+
22
+ ### CLI
23
+
24
+ ```sh
25
+ npm install --global vaca
26
+ ```
27
+
15
28
  ```sh
16
29
  vaca
17
30
  ```