Skip to main content
Home

Built and signed on GitHub Actions

uncompress rar file for deno

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
94%
Published
a year ago (1.0.2)
class Unrar
extends EventEmitter

Class for handling RAR file operations such as listing contents and uncompressing files.

Constructors

new
Unrar(
filepath: string,
options?: ConstructorOptions,
)

Constructs an Unrar instance.

Properties

private
args: string[]
private
bin: string

The path to the RAR file.

The password for the RAR file.

Methods

Retrieves the raw list of files from the RAR file.

private
getPercent(ratio: number): string

Calculates the percentage of completion.

list(): Promise<FileInfo[]>

Lists the contents of the RAR file.

private
normalizeKey(key: string): string | undefined

Normalizes a key to a consistent format.

private
parse(stdout: string): FileInfo[]

Parses the raw list data into an array of FileInfo objects.

uncompress(
fileInfo: FileInfo,
destDir: string,
options?: UncompressOptions,
): Promise<void>

Uncompresses a file from the RAR archive to a destination directory.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@deno-library/unrar

Import symbol

import { Unrar } from "@deno-library/unrar";
or

Import directly with a jsr specifier

import { Unrar } from "jsr:@deno-library/unrar";

Add Package

pnpm i jsr:@deno-library/unrar
or (using pnpm 10.8 or older)
pnpm dlx jsr add @deno-library/unrar

Import symbol

import { Unrar } from "@deno-library/unrar";

Add Package

yarn add jsr:@deno-library/unrar
or (using Yarn 4.8 or older)
yarn dlx jsr add @deno-library/unrar

Import symbol

import { Unrar } from "@deno-library/unrar";

Add Package

vlt install jsr:@deno-library/unrar

Import symbol

import { Unrar } from "@deno-library/unrar";

Add Package

npx jsr add @deno-library/unrar

Import symbol

import { Unrar } from "@deno-library/unrar";

Add Package

bunx jsr add @deno-library/unrar

Import symbol

import { Unrar } from "@deno-library/unrar";