-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a3a2fc
commit 0789648
Showing
8 changed files
with
196 additions
and
96 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"prettier-config-standard" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
export const constants: { | ||
signals: Record<string, number> | ||
errnos: Record<string, number> | ||
} | ||
|
||
export const EOL: '\r\n' | '\n' | ||
|
||
export function platform(): 'android' | 'darwin' | 'ios' | 'linux' | 'win32' | ||
|
||
export function arch(): 'arm' | 'arm64' | 'ia32' | 'x64' | ||
|
||
export function type(): string | ||
|
||
export function version(): string | ||
|
||
export function release(): string | ||
|
||
export function machine(): string | ||
|
||
export function execPath(): string | ||
|
||
export function pid(): number | ||
|
||
export function ppid(): number | ||
|
||
export function cwd(): string | ||
|
||
export function chdir(dir: string): string | ||
|
||
export function tmpdir(): string | ||
|
||
export function homedir(): string | ||
|
||
export function hostname(): string | ||
|
||
export function kill(pid: number, signal?: string | number): void | ||
|
||
export function endianness(): 'LE' | 'BE' | ||
|
||
export function availableParallelism(): number | ||
|
||
export function cpuUsage(previous?: { user: number; system: number }): { | ||
user: number | ||
system: number | ||
} | ||
|
||
export function resourceUsage(): { | ||
userCPUTime: number | ||
systemCPUTime: number | ||
maxRSS: number | ||
sharedMemorySize: number | ||
unsharedDataSize: number | ||
unsharedStackSize: number | ||
minorPageFault: number | ||
majorPageFault: number | ||
swappedOut: number | ||
fsRead: number | ||
fsWrite: number | ||
ipcSent: number | ||
ipcReceived: number | ||
signalsCount: number | ||
voluntaryContextSwitches: number | ||
involuntaryContextSwitches: number | ||
} | ||
|
||
export function memoryUsage(): { | ||
rss: number | ||
heapTotal: number | ||
heapUsed: number | ||
external: number | ||
} | ||
|
||
export function freemem(): number | ||
|
||
export function totalmem(): number | ||
|
||
export function uptime(): number | ||
|
||
export function loadavg(): ArrayLike<number> | ||
|
||
export function getProcessTitle(): string | ||
|
||
export function setProcessTitle(title: unknown): void | ||
|
||
export function getEnvKeys(): string[] | ||
|
||
export function getEnv(name: string): string | undefined | ||
|
||
export function hasEnv(name: string): boolean | ||
|
||
export function setEnv(name: string, value: string): void | ||
|
||
export function unsetEnv(name: string): void |
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
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
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