---
title: runsCode
description: >-
  Whether a browser would run `url` as a script or open it as an HTML document.
  Before it reads a URL's scheme, a browser drops the tabs and newlines anywhere
  in it and the spaces and control characters in front of it.
updated_at: '2026-11-19T09:51:44+01:00'
created_at: '2026-11-12T12:04:45+01:00'
symbol:
  kind: function
  name: runsCode
  signatures:
    - 'runsCode(url: string): boolean'
  parameters:
    - name: url
      type: string
  returns:
    type: boolean
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugins/src/content.ts#L34
---

# runsCode
