UNPKG

react-wrap-text

Version:

A simple utility to wrap matching substrings in React with custom jsx components

53 lines 1.23 kB
{ "name": "react-wrap-text", "version": "0.1.5", "description": "A simple utility to wrap matching substrings in React with custom jsx components", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js" } }, "keywords": [ "react", "highlight", "text-replace", "react-component", "text-formatter", "jsx", "inline-markup", "string-parser", "text-highlighter", "react-utils" ], "author": "", "license": "MIT", "devDependencies": { "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.0", "@vitejs/plugin-react": "^4.7.0", "@vitest/coverage-v8": "^3.2.4", "jsdom": "^26.1.0", "react": "^18.2.0", "react-dom": "^18.2.0", "tsup": "^7.2.0", "typescript": "^5.8.3", "vite": "^7.0.5", "vitest": "^3.2.4" }, "repository": { "type": "git", "url": "https://github.com/chrisg86/react-wrap-text" }, "scripts": { "dev": "vite", "build": "tsup", "preview": "vite preview", "test": "vitest run", "test:coverage": "vitest run --coverage" } }