{"versions":{"7.0.1":{"name":"@types/babel__code-frame","version":"7.0.1","description":"TypeScript definitions for @babel/code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"},{"name":"Forbes Lindesay","url":"https://github.com/ForbesLindesay","githubUsername":"ForbesLindesay"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"9dde49f764a1e02da0cfbd3ad5813aa1b65a866ecec216ad2f98b89fddc9c095","typeScriptVersion":"2.0","_id":"@types/babel__code-frame@7.0.1","dist":{"shasum":"baf2529c4abbfb5e4008c845efcfe39a187e2f99","size":2041,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/babel__code-frame/-/babel__code-frame-7.0.1.tgz"},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.1_1550092055236_0.08350319421576091"},"_hasShrinkwrap":false,"publish_time":1550092055388,"_cnpm_publish_time":1550092055388},"7.0.0":{"name":"@types/babel__code-frame","version":"7.0.0","description":"TypeScript definitions for @babel/code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"},{"name":"Forbes Lindesay","url":"https://github.com/ForbesLindesay","githubUsername":"ForbesLindesay"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"b89a6d72029b27bca1091a1afb52ad6dfb732435135865f5e13db63ad9c55f26","typeScriptVersion":"2.0","_id":"@types/babel__code-frame@7.0.0","dist":{"shasum":"d5658827984c1e386c1b4ef30699b344d3f732a2","size":2042,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/babel__code-frame/-/babel__code-frame-7.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.0_1519772610201_0.16720316669927837"},"_hasShrinkwrap":false,"publish_time":1519772610262,"_cnpm_publish_time":1519772610262},"7.0.2":{"name":"@types/babel__code-frame","version":"7.0.2","description":"TypeScript definitions for @babel/code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"},{"name":"Forbes Lindesay","url":"https://github.com/ForbesLindesay","githubUsername":"ForbesLindesay"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel__code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"698686beb4a32cd9c28b129906c106d97632965f919400c4be88633fc157bf91","typeScriptVersion":"3.2","_id":"@types/babel__code-frame@7.0.2","dist":{"shasum":"e0c0f1648cbc09a9d4e5b4ed2ae9a6f7c8f5aeb0","size":2060,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/babel__code-frame/-/babel__code-frame-7.0.2.tgz"},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.2_1601078311623_0.37517937385017697"},"_hasShrinkwrap":false,"publish_time":1601078311733,"_cnpm_publish_time":1601078311733},"7.0.3":{"name":"@types/babel__code-frame","version":"7.0.3","description":"","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"},{"name":"Forbes Lindesay","url":"https://github.com/ForbesLindesay","githubUsername":"ForbesLindesay"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel__code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"ef46fc0d289bd4227b745d5ea1e3b994b7fff04c38a6d165f06b384f2cc9479f","typeScriptVersion":"3.6","_id":"@types/babel__code-frame@7.0.3","dist":{"shasum":"eda94e1b7c9326700a4b69c485ebbc9498a0b63f","size":2149,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/babel__code-frame/-/babel__code-frame-7.0.3.tgz"},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.3_1625595339419_0.7510862808661742"},"_hasShrinkwrap":false,"publish_time":1625595339548,"_cnpm_publish_time":1625595339548},"7.0.4":{"name":"@types/babel__code-frame","version":"7.0.4","description":"TypeScript definitions for @babel/code-frame","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","url":"https://github.com/mohsen1","githubUsername":"mohsen1"},{"name":"Forbes Lindesay","url":"https://github.com/ForbesLindesay","githubUsername":"ForbesLindesay"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel__code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"d34b16c8b272ca1fa401cb111581efd10e48a3b8a64c4de5daa985b314b2f4bc","typeScriptVersion":"4.5","_id":"@types/babel__code-frame@7.0.4","dist":{"integrity":"sha512-WBxINLlATjvmpCgBbb9tOPrKtcPfu4A/Yz2iRzmdaodfvjAS/Z0WZJClV9/EXvoC9viI3lgUs7B9Uo7G/RmMGg==","shasum":"0d14543f70ca91f4d2b0513a60f1eb31432c42e1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/babel__code-frame/-/babel__code-frame-7.0.4.tgz","fileCount":5,"unpackedSize":6662,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQm55p/4mV3R+KKLegEkpUjyNZJBX+8BcYBfVe4PHhvwIgAPth417z1LPlHmsSPgvJWtJYYkRYJXqskOR8xfDWbvw="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.4_1694805009354_0.06344597096873539"},"_hasShrinkwrap":false},"7.0.5":{"name":"@types/babel__code-frame","version":"7.0.5","description":"TypeScript definitions for @babel/code-frame","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","githubUsername":"mohsen1","url":"https://github.com/mohsen1"},{"name":"Forbes Lindesay","githubUsername":"ForbesLindesay","url":"https://github.com/ForbesLindesay"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel__code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"ffcd87d74ff31f124988d80427c5e19b0a3337bb03595861eee5d63586170850","typeScriptVersion":"4.5","_id":"@types/babel__code-frame@7.0.5","dist":{"integrity":"sha512-tE88HnYMl5iJAB1V9nJCrE1udmwGCoNvx2ayTa8nwkE3UMMRRljANO+sX8D321hIrqf1DlvhAPAo5G6DWaMQNg==","shasum":"796518a4f04683835af01f26dc285bb4068bf085","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/babel__code-frame/-/babel__code-frame-7.0.5.tgz","fileCount":5,"unpackedSize":5944,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaPrBh2KfZeMTI5zbnKQN5TsJgomH1Ex5At0kBtJLqGQIhAJTmi1CV/jHuonVu24VNVBxznhZp7ONDhq3/Sev8tOUo"}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.5_1697583318704_0.6825496551509338"},"_hasShrinkwrap":false},"7.0.6":{"name":"@types/babel__code-frame","version":"7.0.6","description":"TypeScript definitions for @babel/code-frame","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame","license":"MIT","contributors":[{"name":"Mohsen Azimi","githubUsername":"mohsen1","url":"https://github.com/mohsen1"},{"name":"Forbes Lindesay","githubUsername":"ForbesLindesay","url":"https://github.com/ForbesLindesay"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/babel__code-frame"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"a7c50ce38e091a636e921f03f97acd10e18751e3b31a2c052935506af945ee55","typeScriptVersion":"4.5","_id":"@types/babel__code-frame@7.0.6","dist":{"integrity":"sha512-Anitqkl3+KrzcW2k77lRlg/GfLZLWXBuNgbEcIOU6M92yw42vsd3xV/Z/yAHEj8m+KUjL6bWOVOFqX8PFPJ4LA==","shasum":"20a899c0d29fba1ddf5c2156a10a2bda75ee6f29","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/babel__code-frame/-/babel__code-frame-7.0.6.tgz","fileCount":5,"unpackedSize":5944,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC36ZwuQfZ6b77dMi9RHotz6qCZ0Mf11YhtjNRkYLDvIAiEArB2fsjUg2PheUeWhX5znZX49N37rcdcTWX7WBI0BlDI="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel__code-frame_7.0.6_1699313942179_0.5927904079940975"},"_hasShrinkwrap":false},"7.27.0":{"name":"@types/babel__code-frame","version":"7.27.0","license":"MIT","_id":"@types/babel__code-frame@7.27.0","maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"contributors":[{"url":"https://github.com/mohsen1","name":"Mohsen Azimi","githubUsername":"mohsen1"},{"url":"https://github.com/ForbesLindesay","name":"Forbes Lindesay","githubUsername":"ForbesLindesay"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame","dist":{"shasum":"4799f597ec9e7bbdd39e1374f43423742dcffa99","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/babel__code-frame/-/babel__code-frame-7.27.0.tgz","fileCount":5,"integrity":"sha512-Dwlo+LrxDx/0SpfmJ/BKveHf7QXWvLBLc+x03l5sbzykj3oB9nHygCpSECF1a+s+QIxbghe+KHqC90vGtxLRAA==","signatures":[{"sig":"MEUCIQCrnSUZ/sAFN+NMyf76YUHRpwO62hftUUUW3bmD0SIRpQIgGfsrFYY1HAu6fUgwo5XXlMuFUJduj3vTBtaYxNSxm4Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6397,"size":2184},"main":"","types":"index.d.ts","scripts":{},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/babel__code-frame"},"description":"TypeScript definitions for @babel/code-frame","directories":{},"dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{},"typeScriptVersion":"5.2","_npmOperationalInternal":{"tmp":"tmp/babel__code-frame_7.27.0_1768034355563_0.409733989417971","host":"s3://npm-registry-packages-npm-production"},"typesPublisherContentHash":"3e5f42d6ed9f54b50ff2ccb4806d4f8e6e2ea71af21665302fdb46d414a3ba98","_cnpmcore_publish_time":"2026-01-10T08:39:15.713Z","publish_time":1768034355713,"_source_registry_name":"default"}},"dist-tags":{"latest":"7.27.0","ts2.0":"7.0.1","ts2.1":"7.0.1","ts2.2":"7.0.1","ts2.3":"7.0.1","ts2.4":"7.0.1","ts2.5":"7.0.1","ts2.6":"7.0.1","ts2.7":"7.0.1","ts2.8":"7.0.1","ts2.9":"7.0.1","ts3.0":"7.0.1","ts3.1":"7.0.1","ts3.2":"7.0.2","ts3.3":"7.0.2","ts3.4":"7.0.2","ts3.5":"7.0.2","ts3.6":"7.0.3","ts3.7":"7.0.3","ts3.8":"7.0.3","ts3.9":"7.0.3","ts4.0":"7.0.3","ts4.1":"7.0.3","ts4.2":"7.0.3","ts4.3":"7.0.3","ts4.4":"7.0.3","ts4.5":"7.0.6","ts4.6":"7.0.6","ts4.7":"7.0.6","ts4.8":"7.0.6","ts4.9":"7.0.6","ts5.0":"7.0.6","ts5.1":"7.0.6","ts5.2":"7.27.0","ts5.3":"7.27.0","ts5.4":"7.27.0","ts5.5":"7.27.0","ts5.6":"7.27.0","ts5.7":"7.27.0","ts5.8":"7.27.0","ts5.9":"7.27.0","ts6.0":"7.27.0"},"name":"@types/babel__code-frame","time":{"modified":"2026-01-10T08:39:33.158Z","created":"2022-01-27T10:08:47.810Z","7.0.1":"2019-02-13T21:07:35.388Z","7.0.0":"2018-02-27T23:03:30.262Z","7.0.2":"2020-09-25T23:58:31.733Z","7.0.3":"2021-07-06T18:15:39.548Z","7.0.4":"2023-09-15T19:10:09.576Z","7.0.5":"2023-10-17T22:55:18.936Z","7.0.6":"2023-11-06T23:39:02.416Z","7.27.0":"2026-01-10T08:39:15.713Z"},"readme":"# Installation\r\n> `npm install --save @types/babel__code-frame`\r\n\r\n# Summary\r\nThis package contains type definitions for @babel/code-frame (https://github.com/babel/babel/tree/master/packages/babel-code-frame).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame/index.d.ts)\r\n````ts\r\nexport interface SourceLocation {\n    start: { line: number; column?: number | undefined };\n    end?: { line: number; column?: number | undefined } | undefined;\n}\nexport function codeFrameColumns(\n    rawLines: string,\n    location: SourceLocation,\n    options?: BabelCodeFrameOptions,\n): string;\n\nexport interface BabelCodeFrameOptions {\n    /** Syntax highlight the code as JavaScript for terminals. default: false */\n    highlightCode?: boolean | undefined;\n    /**  The number of lines to show above the error. default: 2 */\n    linesAbove?: number | undefined;\n    /**  The number of lines to show below the error. default: 3 */\n    linesBelow?: number | undefined;\n    /**\n     * Forcibly syntax highlight the code as JavaScript (for non-terminals);\n     * overrides highlightCode.\n     * default: false\n     */\n    forceColor?: boolean | undefined;\n    /**\n     * Pass in a string to be displayed inline (if possible) next to the\n     * highlighted location in the code. If it can't be positioned inline,\n     * it will be placed above the code frame.\n     * default: nothing\n     */\n    message?: string | undefined;\n}\n\n/**\n * Generate errors that contain a code frame that point to source locations.\n *\n * @param rawLines Raw lines to frame\n * @param lineNumber Line number (1 indexed)\n * @param colNumber Column number\n * @param options Additional options\n *\n * @returns Framed code\n */\nexport default function codeFrame(\n    rawLines: string,\n    lineNumber: number,\n    colNumber: number,\n    options?: BabelCodeFrameOptions,\n): string;\n\n/**\n * Add syntax highlighting to a code snippet, to be displayed in a terminal.\n *\n * @param code Raw code to be highlighted\n *\n * @returns Highlighted code\n */\nexport function highlight(code: string): string;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Sat, 10 Jan 2026 08:39:14 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Mohsen Azimi](https://github.com/mohsen1), and [Forbes Lindesay](https://github.com/ForbesLindesay).","users":{}}