{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "PNG_SUFFIX",
      "signature": "const PNG_SUFFIX = \".png\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "LOG_SUFFIX",
      "signature": "const LOG_SUFFIX = \".log\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "HOME_STEM",
      "signature": "const HOME_STEM = \"index\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "ROUTE_SEPARATOR",
      "signature": "const ROUTE_SEPARATOR = \"/\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "STEM_SEPARATOR",
      "signature": "const STEM_SEPARATOR = \"-\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "readCaptureOptions",
      "signature": "export const readCaptureOptions = function readCaptureOptions(argv: ParsedArgv): CaptureOptions | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "routes",
      "signature": "const routes = flagValues(argv, \"--route\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "outDir",
      "signature": "const outDir = flagValue(argv, \"--out-dir\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "rooted",
      "signature": "const rooted = routes.every((route) => route.startsWith(ROUTE_SEPARATOR));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "artifactStem",
      "signature": "export const artifactStem = function artifactStem(route: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "words",
      "signature": "const words = route.split(ROUTE_SEPARATOR).filter((word) => word.length > 0);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "snapshotFor",
      "signature": "export const snapshotFor = function snapshotFor(options: CaptureOptions, route: string): SnapshotOptions {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "stem",
      "signature": "const stem = join(options.outDir, artifactStem(route));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-converters-route-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "route.converter.ts",
  "path": "core/converters/route.converter.ts",
  "ref": "anatomy:file-scripts-core-converters-route-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/scripts#folder-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/scripts/folder-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/scripts/folder-scripts-core-converters.md",
          "ref": "chapter:/anatomy/scripts#folder-scripts-core-converters"
        }
      ],
      "relation": "contained-in"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "route",
    "variant": null
  },
  "stats": {
    "bytes": 2100,
    "callable": 3,
    "definitions": 13,
    "edges": 0,
    "exported": 8,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 13
    },
    "lines": {
      "blank": 4,
      "code": 48,
      "total": 52
    }
  },
  "summary": "48 lines of code and 13 definitions.",
  "text": "https://banes-lab.com/source/scripts/core/converters/route.converter.ts.txt",
  "tree": "scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-converters-snapshot-converter-ts",
      "json": "https://banes-lab.com/json/source/scripts/core/converters/snapshot.converter.ts",
      "label": "core/converters/snapshot.converter.ts",
      "markdown": "https://banes-lab.com/source/scripts/core/converters/snapshot.converter.ts.md",
      "ref": "anatomy:file-scripts-core-converters-snapshot-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-converters-rate-converter-ts",
      "json": "https://banes-lab.com/json/source/scripts/core/converters/rate.converter.ts",
      "label": "core/converters/rate.converter.ts",
      "markdown": "https://banes-lab.com/source/scripts/core/converters/rate.converter.ts.md",
      "ref": "anatomy:file-scripts-core-converters-rate-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/scripts/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/scripts/core/converters.md",
    "ref": "api:source/scripts/core/converters"
  }
}
