UNPKG

react-lowlight

Version:

Super-thin React wrapper for lowlight (Syntax highlighting using VDOM)

83 lines (82 loc) 1.87 kB
{ "name": "react-lowlight", "version": "3.1.0", "description": "Super-thin React wrapper for lowlight (Syntax highlighting using VDOM)", "sideEffects": [ "./src/common.js", "./src/all.js" ], "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/rexxars/react-lowlight.git" }, "bugs": "https://github.com/rexxars/react-lowlight/issues", "homepage": "https://github.com/rexxars/react-lowlight#readme", "author": "Espen Hovlandsdal <espen@hovlandsdal.com>", "type": "module", "main": "./src/Lowlight.js", "types": "./src/Lowlight.d.ts", "module": "./src/Lowlight.js", "exports": { ".": { "types": "./src/Lowlight.d.ts", "import": "./src/Lowlight.js", "default": "./src/Lowlight.js" }, "./common": { "types": "./src/common.d.ts", "import": "./src/common.js", "default": "./src/common.js" }, "./all": { "types": "./src/all.d.ts", "import": "./src/all.js", "default": "./src/all.js" } }, "files": [ "src" ], "keywords": [ "react", "highlight", "syntax", "lowlight", "vdom" ], "scripts": { "lint": "standard", "prepublishOnly": "vitest --run", "posttest": "npm run lint", "test": "vitest", "serve": "vite", "build": "vite build --base=/react-lowlight/" }, "peerDependencies": { "highlight.js": "^11.0.0", "react": ">=16.8.0" }, "peerDependenciesMeta": { "highlight.js": { "optional": true } }, "dependencies": { "lowlight": "^2.4.1" }, "devDependencies": { "@vitejs/plugin-react": "^4.3.4", "highlight.js": "^11.8.0", "react": "^18.2.0", "react-dom": "^18.2.0", "standard": "^17.1.0", "vite": "^6.0.3", "vitest": "^2.1.8" }, "standard": { "ignore": [ "demo/js/code.js" ] } }