Skip to content

Commit

Permalink
🎨 style(index.ts): refactor import statement for picocolors library
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nyxb committed May 18, 2023
1 parent ea1fe81 commit a2781dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import { promisify } from 'node:util'
import { promises as fs } from 'node:fs'
import { networkInterfaces } from 'node:os'
import type { AddressInfo } from 'node:net'
import { bold, cyan, gray, underline } from '@nyxb/picocolors'
import color from '@nyxb/picocolors'
import type { GetPortInput } from 'scotty-beam-me-up'
import { getPort } from 'scotty-beam-me-up'
import addShutdown from 'http-shutdown'
import { nyxdefaults } from 'nyxdefaults'
import { open } from './lib/open'

const { gray, cyan, underline, bold } = color

export interface Certificate {
key: string
cert: string
Expand Down

0 comments on commit a2781dd

Please sign in to comment.