react-audio-recorder-hook
Version:
A powerful TypeScript-based React hook that provides complete audio recording capabilities with pause/resume functionality, recording management, and audio processing
124 lines (123 loc) • 3.96 kB
JSON
{
"name": "react-audio-recorder-hook",
"version": "1.0.7",
"description": "A powerful TypeScript-based React hook that provides complete audio recording capabilities with pause/resume functionality, recording management, and audio processing",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"typings": "dist/types/index.d.ts",
"source": "src/index.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
},
"./examples": {
"import": "./dist/esm/examples/index.js",
"require": "./dist/cjs/examples/index.js",
"types": "./dist/types/examples/index.d.ts"
},
"./package.json": "./package.json"
},
"scripts": {
"build": "rimraf dist && npm run build:types && npm run build:esm && npm run build:cjs",
"build:types": "tsc --declaration --declarationDir dist/types --emitDeclarationOnly --declarationMap",
"build:esm": "tsc --outDir dist/esm --module ES2020",
"build:cjs": "tsc --outDir dist/cjs --module CommonJS",
"prepare": "npm run build",
"prepublishOnly": "npm run lint && npm run test",
"test": "vitest run",
"test:ci": "vitest run --reporter=default --reporter=junit --outputFile=./test-results.xml",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint src --ext .ts,.tsx --max-warnings 50",
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
"ci": "npm run lint && npm run test:ci && npm run build",
"semantic-release": "semantic-release",
"release:dry-run": "semantic-release --dry-run",
"docs": "typedoc --out docs src/index.ts",
"docs:serve": "serve docs",
"validate": "npm run lint && npm run test && npm run build && npm pack --dry-run",
"audit": "npm audit",
"preversion": "npm run validate",
"postversion": "git push && git push --tags"
},
"keywords": [
"react",
"hook",
"audio",
"recorder",
"voice",
"recording",
"mediarecorder",
"typescript",
"web-audio",
"media-stream",
"audio-processing"
],
"author": "Miladbn <milad.b.n.77@gmail.com>",
"license": "MIT",
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@testing-library/react": "^14.1.2",
"@testing-library/react-hooks": "^8.0.1",
"@types/node": "^22.13.10",
"@types/react": "^18.2.33",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react": "^4.1.0",
"@vitest/coverage-v8": "^1.3.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "^4.6.0",
"happy-dom": "^17.4.4",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"semantic-release": "^23.0.2",
"serve": "^14.2.1",
"typedoc": "^0.25.12",
"typescript": "^5.3.3",
"vitest": "^1.3.1"
},
"files": [
"dist",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/miladbn/react-audio-recorder-hook.git"
},
"bugs": {
"url": "https://github.com/miladbn/react-audio-recorder-hook/issues"
},
"homepage": "https://miladbn.github.io/react-audio-recorder-docs/",
"engines": {
"node": ">=14.0.0"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"publishConfig": {
"access": "public"
}
}