OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-kb / skills / which-runtime / api-extract.json

32 lines · json ref:
{
  "repo": "which-runtime",
  "timestamp": "2026-01-16T23:56:03.935Z",
  "entryPoint": "index.js",
  "exports": {
    "packageJson": {
      "main": "index.js"
    }
  },
  "api": {
    "file": "index.js",
    "exports": [],
    "classes": [],
    "functions": []
  },
  "readme": {
    "content": "# which-runtime\n\nDetect if you are in Bare or Node and which os etc\n\n```\nnpm install which-runtime\n```\n\n## Usage\n\n```js\nimport {\n  runtime, // bare, node, or browser\n  platform, // the platform string, ie darwin, win32, etc\n  arch, // which arch, arm64, ia32, x64 etc\n  isBrowser,\n  isBare,\n  isNode,\n  isLinux,\n  isWindows,\n  isMac,\n  isIOS,\n  isAndroid\n} from 'which-runtime'\n```\n\n## License\n\nApache-2.0\n",
    "sections": [
      "intro",
      "usage",
      "license"
    ],
    "hasApi": true,
    "hasExamples": true,
    "exampleCount": 2,
    "examples": [
      "npm install which-runtime",
      "import {\n  runtime, // bare, node, or browser\n  platform, // the platform string, ie darwin, win32, etc\n  arch, // which arch, arm64, ia32, x64 etc\n  isBrowser,\n  isBare,\n  isNode,\n  isLinux,\n  isWindows,\n  isMac,\n  isIOS,\n  isAndroid\n} from 'which-runtime'"
    ]
  },
  "patterns": []
}