14 lines
409 B
TypeScript
14 lines
409 B
TypeScript
import * as os from 'os'
|
|
|
|
import { NodePlatform } from './common-internals-node/platform.js'
|
|
import { normalizeFile } from './utils/normalize-file.js'
|
|
|
|
export class BunPlatform extends NodePlatform {
|
|
declare normalizeFile: typeof normalizeFile
|
|
|
|
getDeviceModel(): string {
|
|
return `Bun/${process.version} (${os.type()} ${os.arch()})`
|
|
}
|
|
}
|
|
|
|
BunPlatform.prototype.normalizeFile = normalizeFile
|