pixl-cli 1.1.0 → 1.1.2
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/README.md +101 -0
- package/cli.js +224 -16
- package/package.json +1 -1
- package/util.js +25 -1
- package/width.js +62 -1
- package/wrap.js +5 -24
- package/agents/string-width/.editorconfig +0 -12
- package/agents/string-width/.gitattributes +0 -1
- package/agents/string-width/.github/security.md +0 -3
- package/agents/string-width/.github/workflows/main.yml +0 -22
- package/agents/string-width/index.d.ts +0 -39
- package/agents/string-width/index.js +0 -207
- package/agents/string-width/index.test-d.ts +0 -7
- package/agents/string-width/license +0 -9
- package/agents/string-width/package.json +0 -65
- package/agents/string-width/readme.md +0 -66
- package/agents/string-width/test.js +0 -339
- package/agents/widest-line/.editorconfig +0 -12
- package/agents/widest-line/.gitattributes +0 -1
- package/agents/widest-line/.github/security.md +0 -3
- package/agents/widest-line/.github/workflows/main.yml +0 -21
- package/agents/widest-line/index.d.ts +0 -12
- package/agents/widest-line/index.js +0 -11
- package/agents/widest-line/license +0 -9
- package/agents/widest-line/package.json +0 -60
- package/agents/widest-line/readme.md +0 -26
- package/agents/widest-line/test.js +0 -8
- package/agents/word-wrap/.editorconfig +0 -13
- package/agents/word-wrap/.eslintrc.json +0 -122
- package/agents/word-wrap/.gitattributes +0 -10
- package/agents/word-wrap/.github/workflows/publish.yml +0 -19
- package/agents/word-wrap/.travis.yml +0 -13
- package/agents/word-wrap/.verb.md +0 -114
- package/agents/word-wrap/LICENSE +0 -21
- package/agents/word-wrap/README.md +0 -201
- package/agents/word-wrap/bower.json +0 -60
- package/agents/word-wrap/index.d.ts +0 -50
- package/agents/word-wrap/index.js +0 -61
- package/agents/word-wrap/package.json +0 -77
- package/agents/word-wrap/test.js +0 -69
- package/test.js +0 -20
package/test.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var cli = require('.');
|
|
2
|
-
var chalk = cli.chalk;
|
|
3
|
-
|
|
4
|
-
cli.global();
|
|
5
|
-
|
|
6
|
-
var fixedEmoji = function(emoji) {
|
|
7
|
-
// Draw the emoji, restore its starting cursor position, then explicitly move
|
|
8
|
-
// forward two cells. This overrides each terminal's automatic cursor advance.
|
|
9
|
-
return '\u001b7' + emoji + '\u001b8\u001b[2C';
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
println( table([
|
|
13
|
-
|
|
14
|
-
['Name', 'Status'],
|
|
15
|
-
['Success', fixedEmoji('✅') + ' ' + chalk.rgb(0, 201, 80).bold('Success')],
|
|
16
|
-
['Warning', fixedEmoji('⚠️') + ' ' + chalk.rgb(240, 177, 0).bold('Warning')],
|
|
17
|
-
['Critical', fixedEmoji('☢️') + ' ' + chalk.rgb(173, 70, 255).bold('Critical')],
|
|
18
|
-
['Abort', fixedEmoji('🚫') + ' ' + chalk.rgb(127, 127, 127).bold('Abort')]
|
|
19
|
-
|
|
20
|
-
]) );
|