Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/onedjs.
Something went wrong. Try again.
12345678910111213141516import { createRuntime } from '@onedjs/core'import * as fs from './fs'
export const nodeRuntime = createRuntime({ runtimeName: 'node', isCurrent: () => typeof globalThis.process !== 'undefined', runOnly(name, fn) { if (name === this.runtimeName) { fn() return true } return false }, fs,})