Skip to content

Commit a2781dd

Browse files
author
nyxb
committed
🎨 style(index.ts): refactor import statement for picocolors library
The import statement for the picocolors library has been refactored to use a default import for the color object. This improves the readability of the code and reduces the number of named imports.
1 parent ea1fe81 commit a2781dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/index.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ import { promisify } from 'node:util'
88
import { promises as fs } from 'node:fs'
99
import { networkInterfaces } from 'node:os'
1010
import type { AddressInfo } from 'node:net'
11-
import { bold, cyan, gray, underline } from '@nyxb/picocolors'
11+
import color from '@nyxb/picocolors'
1212
import type { GetPortInput } from 'scotty-beam-me-up'
1313
import { getPort } from 'scotty-beam-me-up'
1414
import addShutdown from 'http-shutdown'
1515
import { nyxdefaults } from 'nyxdefaults'
1616
import { open } from './lib/open'
1717

18+
const { gray, cyan, underline, bold } = color
19+
1820
export interface Certificate {
1921
key: string
2022
cert: string

0 commit comments

Comments
 (0)