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
async function streamToString(readable: Readable) { | |
return new Promise((resolve, reject) => { | |
const chunks: string[] = []; | |
readable.on('data', (chunk) => { | |
chunks.push(chunk); | |
}); | |
readable.on('end', () => { | |
resolve(chunks.join('')); |
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
Show hidden characters
{ | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"project": "./tsconfig.json" | |
}, | |
"plugins": ["@typescript-eslint"], | |
"extends": [ | |
"plugin:@typescript-eslint/recommended", | |
"prettier", | |
"prettier/@typescript-eslint" |
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
export const reset = '\x1b[0m'; | |
export const bright = '\x1b[1m'; | |
export const dim = '\x1b[2m'; | |
export const underscore = '\x1b[4m'; | |
export const blink = '\x1b[5m'; | |
export const reverse = '\x1b[7m'; | |
export const hidden = '\x1b[8m'; | |
export const fgBlack = '\x1b[30m'; | |
export const fgRed = '\x1b[31m'; |
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
#! /bin/sh | |
npx --quiet prettier --print-width 80 --single-quote --trailing-comma all --arrow-parens always --loglevel warn --write "**/*.ts" |
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
#!/bin/sh | |
docker stop $(docker ps -a -q) && docker system prune -af |