Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 28, 2019
1 parent 143863e commit 8df0a4d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export interface Spinner {
* @example
*
* const cliSpinners = require('cli-spinners');
* console.log(cliSpinners.dots);
*
* console.log(cliSpinners.dots);
* // {
* // interval: 80,
* // frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
Expand Down
84 changes: 42 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
{
"name": "cli-spinners",
"version": "1.3.1",
"description": "Spinners for use in the terminal",
"license": "MIT",
"repository": "sindresorhus/cli-spinners",
"author": {
"name": "Sindre Sorhus",
"email": "[email protected]",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava && tsd-check",
"asciicast": "asciinema rec --command='node example-all.js' --title='cli-spinner' --quiet"
},
"files": [
"name": "cli-spinners",
"version": "1.3.1",
"description": "Spinners for use in the terminal",
"license": "MIT",
"repository": "sindresorhus/cli-spinners",
"author": {
"name": "Sindre Sorhus",
"email": "[email protected]",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=6"
},
"scripts": {
"test": "xo && ava && tsd-check",
"asciicast": "asciinema rec --command='node example-all.js' --title='cli-spinner' --quiet"
},
"files": [
"index.js",
"index.d.ts",
"spinners.json"
],
"keywords": [
"cli",
"spinner",
"spinners",
"terminal",
"term",
"console",
"ascii",
"unicode",
"loading",
"indicator",
"progress",
"busy",
"wait",
"idle",
"json"
],
"devDependencies": {
"ava": "^1.2.1",
"log-update": "^2.1.0",
"tsd-check": "^0.3.0",
"xo": "^0.24.0"
}
],
"keywords": [
"cli",
"spinner",
"spinners",
"terminal",
"term",
"console",
"ascii",
"unicode",
"loading",
"indicator",
"progress",
"busy",
"wait",
"idle",
"json"
],
"devDependencies": {
"ava": "^1.2.1",
"log-update": "^2.1.0",
"tsd-check": "^0.3.0",
"xo": "^0.24.0"
}
}
10 changes: 5 additions & 5 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import test from 'ava';
import m from '.';
import cliSpinners from '.';

test('api', t => {
t.is(typeof m, 'object');
t.is(m.dots.interval, 80);
t.true(Array.isArray(m.dots.frames));
test('main', t => {
t.is(typeof cliSpinners, 'object');
t.is(cliSpinners.dots.interval, 80);
t.true(Array.isArray(cliSpinners.dots.frames));
});

0 comments on commit 8df0a4d

Please sign in to comment.