type Inspect = typeof import("util").inspect; // This is passed to [util.inspect.custom](..., { stylize }) to help users colorize parts. export function getStylizeWithColor(inspect: Inspect) { return function stylizeWithColor(str: string, styleType: string) { const style = inspect.styles[styleType]; if (style !== undefined) { const color = inspect.colors[style]; if (color !== undefined) return `\u001b[${color[0]}m${str}\u001b[${color[1]}m`; } return str; }; } export function stylizeWithNoColor(str: string) { return str; } ct name='h' onchange='this.form.submit();'> Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/license (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2019-09-01Move `forked-to`’s links next to Fork button (#2230)19.9.2Gravatar Jeroen van Warmerdam 5-20/+69
2019-09-01Add `reload-failed-proxied-images` feature (#2393)19.9.1Gravatar Grammatopoulos Athanasios-Vasileios 5-0/+40
2019-08-31Update dependencies and lint (#2391)19.8.31Gravatar Federico Brigante 26-605/+958
2019-08-31Hide unnecessary tip on comment field (#2375)Gravatar Kid 4-5/+39