react-shiki
Version:
Syntax highlighter component for react using shiki
107 lines • 2.53 kB
JSON
{
"name": "react-shiki",
"description": "Syntax highlighter component for react using shiki",
"version": "0.10.1",
"license": "MIT",
"author": {
"name": "Bassim Shahidy",
"email": "bassim@shahidy.com",
"url": "https://bassim.build"
},
"repository": {
"type": "git",
"directory": "package",
"url": "git+https://github.com/AVGVSTVS96/react-shiki.git"
},
"homepage": "https://react-shiki.vercel.app/",
"keywords": [
"react",
"shiki",
"code",
"syntax",
"highlighter",
"syntax-highlighter",
"react-syntax-highlighter"
],
"type": "module",
"main": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"files": [
"dist",
"src/styles/features.css",
"src/styles/css.d.ts"
],
"sideEffects": [
"src/styles/component.css",
"src/styles/features.css"
],
"publishConfig": {
"access": "public",
"provenance": true
},
"exports": {
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./web": {
"types": "./dist/web.d.mts",
"default": "./dist/web.mjs"
},
"./core": {
"types": "./dist/core.d.mts",
"default": "./dist/core.mjs"
},
"./css": {
"types": "./src/styles/css.d.ts",
"default": "./src/styles/features.css"
}
},
"peerDependencies": {
"@types/react": ">=16.14.0",
"@types/react-dom": ">=16.14.0",
"react": ">=16.14.0",
"react-dom": ">=16.14.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
},
"dependencies": {
"clsx": "^2.1.1",
"dequal": "^2.0.3",
"hast-util-to-jsx-runtime": "^2.3.6",
"shiki": "^4.0.2",
"unist-util-visit": "^5.1.0"
},
"devDependencies": {
"@arethetypeswrong/core": "^0.18.2",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@tsdown/css": "0.21.10",
"@types/hast": "^3.0.4",
"@types/jest": "^30.0.0",
"@types/node": "25.6.0",
"@types/react": "^19.2.14",
"@vitejs/plugin-react": "^6.0.1",
"html-react-parser": "^6.1.0",
"jsdom": "^29.1.1",
"publint": "^0.3.19",
"tsdown": "^0.21.10",
"vitest": "^4.1.5"
},
"scripts": {
"dev": "tsdown --watch",
"build": "tsdown",
"test": "vitest",
"bench": "vitest bench",
"lint": "biome lint .",
"lint:fix": "biome lint --write .",
"format": "biome format --write .",
"check": "tsc && biome check ."
}
}