vaca 1.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.
Files changed (5) hide show
  1. package/cli.js +10 -9
  2. package/index.js +5 -4
  3. package/license +5 -17
  4. package/package.json +43 -42
  5. package/readme.md +5 -16
package/cli.js CHANGED
@@ -1,12 +1,13 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';
3
- var meow = require('meow');
4
- var indentString = require('indent-string');
5
- var vaca = require('./');
2
+ import meow from 'meow';
3
+ import indentString from 'indent-string';
4
+ import vaca from './index.js';
6
5
 
7
- meow([
8
- 'Usage',
9
- ' $ vaca'
10
- ]);
6
+ meow(`
7
+ Usage
8
+ $ vaca
9
+ `, {
10
+ importMeta: import.meta,
11
+ });
11
12
 
12
- console.log('\n\n' + indentString(vaca(), '\t') + '\n');
13
+ console.log('\n\n' + indentString(vaca(), 1, '\t') + '\n');
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
- 'use strict';
2
- var uniqueRandomArray = require('unique-random-array');
3
- var cows = require('cows');
1
+ import uniqueRandomArray from 'unique-random-array';
2
+ import cows from 'cows';
4
3
 
5
- module.exports = uniqueRandomArray(cows());
4
+ const randomCow = uniqueRandomArray(cows());
5
+
6
+ export default randomCow;
package/license CHANGED
@@ -1,21 +1,9 @@
1
- The MIT License (MIT)
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
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
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:
11
6
 
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14
8
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/package.json CHANGED
@@ -1,44 +1,45 @@
1
1
  {
2
- "name": "vaca",
3
- "version": "1.0.0",
4
- "description": "Get a random ASCII cow 🐮",
5
- "license": "MIT",
6
- "repository": "sindresorhus/vaca",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "bin": "cli.js",
13
- "engines": {
14
- "node": ">=0.10.0"
15
- },
16
- "scripts": {
17
- "test": "xo && ava"
18
- },
19
- "files": [
20
- "index.js",
21
- "cli.js"
22
- ],
23
- "keywords": [
24
- "cli-app",
25
- "cli",
26
- "cows",
27
- "cow",
28
- "vaca",
29
- "list",
30
- "array",
31
- "random",
32
- "rand"
33
- ],
34
- "dependencies": {
35
- "cows": "^1.0.0",
36
- "indent-string": "^2.1.0",
37
- "meow": "^3.7.0",
38
- "unique-random-array": "^1.0.0"
39
- },
40
- "devDependencies": {
41
- "ava": "*",
42
- "xo": "*"
43
- }
2
+ "name": "vaca",
3
+ "version": "3.0.0",
4
+ "description": "Get a random ASCII cow 🐮",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/vaca",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "Sindre Sorhus",
10
+ "email": "sindresorhus@gmail.com",
11
+ "url": "https://sindresorhus.com"
12
+ },
13
+ "type": "module",
14
+ "bin": "./cli.js",
15
+ "engines": {
16
+ "node": ">=18"
17
+ },
18
+ "scripts": {
19
+ "test": "xo && ava"
20
+ },
21
+ "files": [
22
+ "index.js",
23
+ "cli.js"
24
+ ],
25
+ "keywords": [
26
+ "cli-app",
27
+ "cli",
28
+ "cows",
29
+ "cow",
30
+ "vaca",
31
+ "list",
32
+ "array",
33
+ "random"
34
+ ],
35
+ "dependencies": {
36
+ "cows": "^3.0.0",
37
+ "indent-string": "^5.0.0",
38
+ "meow": "^13.2.0",
39
+ "unique-random-array": "^3.0.0"
40
+ },
41
+ "devDependencies": {
42
+ "ava": "^6.1.2",
43
+ "xo": "^0.58.0"
44
+ }
44
45
  }
package/readme.md CHANGED
@@ -1,32 +1,21 @@
1
- # vaca [![Build Status](https://travis-ci.org/sindresorhus/vaca.svg?branch=master)](https://travis-ci.org/sindresorhus/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
 
9
+ ```sh
10
+ npm install --global vaca
10
11
  ```
11
- $ npm install --global vaca
12
- ```
13
-
14
12
 
15
13
  ## Usage
16
14
 
17
- ```
18
- vaca --help
19
-
20
- Usage
21
- $ vaca
15
+ ```sh
16
+ vaca
22
17
  ```
23
18
 
24
-
25
19
  ## Related
26
20
 
27
21
  - [cows](https://github.com/sindresorhus/cows) - ASCII cows 🐮
28
-
29
-
30
- ## License
31
-
32
- MIT © [Sindre Sorhus](https://sindresorhus.com)