Comparing version 0.1.5 to 0.1.7
@@ -5,5 +5,6 @@ /** | ||
* @param {number | undefined} [width] | ||
* @param {string | undefined} [font] | ||
* @returns {string} | ||
*/ | ||
export function to_svg(s: string, theme: string, width?: number | undefined): string; | ||
export function to_svg(s: string, theme: string, width?: number | undefined, font?: string | undefined): string; | ||
/** | ||
@@ -13,4 +14,5 @@ * @param {string} s | ||
* @param {number | undefined} [width] | ||
* @param {string | undefined} [font] | ||
* @returns {string} | ||
*/ | ||
export function to_html(s: string, theme: string, width?: number | undefined): string; | ||
export function to_html(s: string, theme: string, width?: number | undefined, font?: string | undefined): string; |
{ | ||
"name": "ansi2", | ||
"version": "0.1.5", | ||
"version": "0.1.7", | ||
"description": "ansi2", | ||
@@ -26,6 +26,7 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@types/node": "^20.12.11", | ||
"esbuild": "^0.21.1", | ||
"@types/node": "^20.12.11", | ||
"typescript": "^5.4.5", | ||
"wasm-pack-sync": "0.1.5" | ||
} | ||
} |
@@ -8,1 +8,8 @@ ## usage | ||
``` | ||
## custom font | ||
```bash | ||
neofetch | ansi2 --format=svg --theme=vscode --font=./font.ttf > ./neofetch.svg | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
408245
4400
14
4