1.0.1 • Published 1 year ago
use-audio-record v1.0.1
use-audio-record
Simpler Usage of Browser's Recording API in Vue or React.
Usage
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-recordImport:
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";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";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";Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable - Install dependencies using
pnpm install - Run interactive tests using
pnpm dev
License
Published under the MIT license. Made by community 💛
🤖 auto updated with automd