vaca 2.0.0 → 3.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.
- package/cli.js +6 -5
- package/index.js +5 -4
- package/license +1 -1
- package/package.json +12 -10
- package/readme.md +5 -13
package/cli.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const vaca = require('.');
|
|
2
|
+
import meow from 'meow';
|
|
3
|
+
import indentString from 'indent-string';
|
|
4
|
+
import vaca from './index.js';
|
|
6
5
|
|
|
7
6
|
meow(`
|
|
8
7
|
Usage
|
|
9
8
|
$ vaca
|
|
10
|
-
|
|
9
|
+
`, {
|
|
10
|
+
importMeta: import.meta,
|
|
11
|
+
});
|
|
11
12
|
|
|
12
13
|
console.log('\n\n' + indentString(vaca(), 1, '\t') + '\n');
|
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const cows = require('cows');
|
|
1
|
+
import uniqueRandomArray from 'unique-random-array';
|
|
2
|
+
import cows from 'cows';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
const randomCow = uniqueRandomArray(cows());
|
|
5
|
+
|
|
6
|
+
export default randomCow;
|
package/license
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vaca",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Get a random ASCII cow 🐮",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "sindresorhus/vaca",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
7
8
|
"author": {
|
|
8
9
|
"name": "Sindre Sorhus",
|
|
9
10
|
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
11
12
|
},
|
|
12
|
-
"
|
|
13
|
+
"type": "module",
|
|
14
|
+
"bin": "./cli.js",
|
|
13
15
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
16
|
+
"node": ">=18"
|
|
15
17
|
},
|
|
16
18
|
"scripts": {
|
|
17
19
|
"test": "xo && ava"
|
|
@@ -31,13 +33,13 @@
|
|
|
31
33
|
"random"
|
|
32
34
|
],
|
|
33
35
|
"dependencies": {
|
|
34
|
-
"cows": "^
|
|
35
|
-
"indent-string": "^
|
|
36
|
-
"meow": "^
|
|
37
|
-
"unique-random-array": "^
|
|
36
|
+
"cows": "^3.0.0",
|
|
37
|
+
"indent-string": "^5.0.0",
|
|
38
|
+
"meow": "^13.2.0",
|
|
39
|
+
"unique-random-array": "^3.0.0"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
|
40
|
-
"ava": "
|
|
41
|
-
"xo": "
|
|
42
|
+
"ava": "^6.1.2",
|
|
43
|
+
"xo": "^0.58.0"
|
|
42
44
|
}
|
|
43
45
|
}
|
package/readme.md
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
|
-
# vaca
|
|
1
|
+
# vaca
|
|
2
2
|
|
|
3
3
|
> Get a random ASCII cow 🐮
|
|
4
4
|
|
|
5
5
|
<img src="screenshot.png" width="668">
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
## Install
|
|
9
8
|
|
|
10
|
-
```
|
|
11
|
-
|
|
9
|
+
```sh
|
|
10
|
+
npm install --global vaca
|
|
12
11
|
```
|
|
13
12
|
|
|
14
|
-
|
|
15
13
|
## Usage
|
|
16
14
|
|
|
17
|
-
```
|
|
18
|
-
|
|
15
|
+
```sh
|
|
16
|
+
vaca
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
|
|
22
19
|
## Related
|
|
23
20
|
|
|
24
21
|
- [cows](https://github.com/sindresorhus/cows) - ASCII cows 🐮
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## License
|
|
28
|
-
|
|
29
|
-
MIT © [Sindre Sorhus](https://sindresorhus.com)
|