use-audio-record
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

use-audio-record

npm version npm downloads

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-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";

Development

local 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

Package Sidebar

Install

npm i use-audio-record

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

192 kB

Total Files

31

Last publish

Collaborators

  • wyatex