-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from alienzhou/feat/multi-font
feat(font): support more font sets
- Loading branch information
Showing
206 changed files
with
1,671 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
import { yo } from '../lib/index'; | ||
import * as fontFamily from '../lib/fonts/big'; | ||
import * as fontFamily2 from '../lib/fonts/ansi-shadow'; | ||
|
||
yo(process.argv[2] || 'yoo-hoo', { spacing: 1, color: 'rainbow', paddingStart: 5 }); | ||
yo(process.argv[2] || 'yoo-hoo', { | ||
color: 'green', | ||
spacing: 1, | ||
paddingStart: 5, | ||
}); | ||
|
||
yo(process.argv[2] || 'ascii * art', { | ||
fontFamily, | ||
color: 'rainbow', | ||
}); | ||
|
||
yo(process.argv[2] || 'alienzhou', { | ||
fontFamily: fontFamily2, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"main": "lib/index.js", | ||
"scripts": { | ||
"dev": "tsc --build -w tsconfig.json", | ||
"example": "ts-node example/index.ts", | ||
"example": "npm run build && DEBUG=yoo-hoo ts-node example/index.ts", | ||
"lint": "eslint \"src/**/*.ts\" --fix", | ||
"build": "rm -rf lib && tsc --build tsconfig.json && ts-node script/build.ts", | ||
"prepublishOnly": "npm run lint && npm run build" | ||
|
@@ -25,6 +25,7 @@ | |
"author": "alienzhou <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/debug": "^4.1.5", | ||
"@types/node": "^14.14.9", | ||
"@typescript-eslint/eslint-plugin": "^4.8.1", | ||
"@typescript-eslint/parser": "^4.8.1", | ||
|
@@ -40,6 +41,7 @@ | |
}, | ||
"dependencies": { | ||
"chalk": "^4.1.0", | ||
"debug": "^4.3.1", | ||
"lolcatjs": "^2.4.0" | ||
}, | ||
"husky": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
a | ||
ββββββ | ||
ββββββββ | ||
ββββββββ | ||
ββββββββ | ||
βββ βββ | ||
βββ βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
b | ||
βββββββ | ||
ββββββββ | ||
ββββββββ | ||
ββββββββ | ||
ββββββββ | ||
βββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
c | ||
βββββββ | ||
ββββββββ | ||
βββ | ||
βββ | ||
ββββββββ | ||
βββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
d | ||
βββββββ | ||
ββββββββ | ||
βββ βββ | ||
βββ βββ | ||
ββββββββ | ||
βββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
e | ||
ββββββββ | ||
ββββββββ | ||
ββββββ | ||
ββββββ | ||
ββββββββ | ||
ββββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
f | ||
ββββββββ | ||
ββββββββ | ||
ββββββ | ||
ββββββ | ||
βββ | ||
βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
g | ||
βββββββ | ||
ββββββββ | ||
βββ ββββ | ||
βββ βββ | ||
βββββββββ | ||
βββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
h | ||
βββ βββ | ||
βββ βββ | ||
ββββββββ | ||
ββββββββ | ||
βββ βββ | ||
βββ βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
i | ||
βββ | ||
βββ | ||
βββ | ||
βββ | ||
βββ | ||
βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
j | ||
βββ | ||
βββ | ||
βββ | ||
ββ βββ | ||
ββββββββ | ||
ββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
k | ||
βββ βββ | ||
βββ ββββ | ||
βββββββ | ||
βββββββ | ||
βββ βββ | ||
βββ βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
l | ||
βββ | ||
βββ | ||
βββ | ||
βββ | ||
ββββββββ | ||
ββββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
m | ||
ββββ ββββ | ||
βββββ βββββ | ||
βββββββββββ | ||
βββββββββββ | ||
βββ βββ βββ | ||
βββ βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
n | ||
ββββ βββ | ||
βββββ βββ | ||
ββββββ βββ | ||
ββββββββββ | ||
βββ ββββββ | ||
βββ βββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
o | ||
βββββββ | ||
βββββββββ | ||
βββ βββ | ||
βββ βββ | ||
βββββββββ | ||
βββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
p | ||
βββββββ | ||
ββββββββ | ||
ββββββββ | ||
βββββββ | ||
βββ | ||
βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
q | ||
βββββββ | ||
βββββββββ | ||
βββ βββ | ||
βββββ βββ | ||
βββββββββ | ||
βββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
r | ||
βββββββ | ||
ββββββββ | ||
ββββββββ | ||
ββββββββ | ||
βββ βββ | ||
βββ βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
s | ||
ββββββββ | ||
ββββββββ | ||
ββββββββ | ||
ββββββββ | ||
ββββββββ | ||
ββββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
t | ||
βββββββββ | ||
βββββββββ | ||
βββ | ||
βββ | ||
βββ | ||
βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
u | ||
βββ βββ | ||
βββ βββ | ||
βββ βββ | ||
βββ βββ | ||
βββββββββ | ||
βββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
v | ||
βββ βββ | ||
βββ βββ | ||
βββ βββ | ||
ββββ ββββ | ||
βββββββ | ||
βββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
w | ||
βββ βββ | ||
βββ βββ | ||
βββ ββ βββ | ||
ββββββββββ | ||
ββββββββββ | ||
ββββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
x | ||
βββ βββ | ||
ββββββββ | ||
ββββββ | ||
ββββββ | ||
ββββ βββ | ||
βββ βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
y | ||
βββ βββ | ||
ββββ ββββ | ||
βββββββ | ||
βββββ | ||
βββ | ||
βββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
z | ||
ββββββββ | ||
ββββββββ | ||
βββββ | ||
βββββ | ||
ββββββββ | ||
ββββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
0 | ||
βββββββ | ||
βββββββββ | ||
βββββββββ | ||
βββββββββ | ||
βββββββββ | ||
βββββββ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
1 | ||
βββ | ||
ββββ | ||
ββββ | ||
βββ | ||
βββ | ||
βββ |
Oops, something went wrong.