Simpler Usage of Browser's Recording API in Vue or React.
Install package:
# ✨ Auto-detect
npx nypm install use-audio-record
# npm
npm install use-audio-record
# yarn
yarn add use-audio-record
# pnpm
pnpm install use-audio-record
# bun
bun install use-audio-record
Import:
ESM (Node.js, Bun)
import {
useAudioRecorderReact,
useAudioRecorderVue,
} from "use-audio-record";
CommonJS (Legacy Node.js)
const {
useAudioRecorderReact,
useAudioRecorderVue,
} = require("use-audio-record");
CDN (Deno, Bun and Browsers)
import {
useAudioRecorderReact,
useAudioRecorderVue,
} from "https://esm.sh/use-audio-record";
For React:
ESM (Node.js, Bun)
import { useAudioRecorder } from "use-audio-record/react";
CommonJS (Legacy Node.js)
const { useAudioRecorder } = require("use-audio-record/react");
CDN (Deno, Bun and Browsers)
import { useAudioRecorder } from "https://esm.sh/use-audio-record/react";
For Vue:
ESM (Node.js, Bun)
import { useAudioRecorder } from "use-audio-record/vue";
CommonJS (Legacy Node.js)
const { useAudioRecorder } = require("use-audio-record/vue");
CDN (Deno, Bun and Browsers)
import { useAudioRecorder } from "https://esm.sh/use-audio-record/vue";
local development
Published under the MIT license.
Made by community 💛
🤖 auto updated with automd