# @comunica/actor-dereference-file

> A file dereference actor

Latest version **5.4.0** (published 2026-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @comunica/actor-dereference-file
pnpm add @comunica/actor-dereference-file
yarn add @comunica/actor-dereference-file
bun add @comunica/actor-dereference-file
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 5.4.0 |
| Published | 2026-09-14 |
| First published | 2022-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 21 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 602 |
| Maintainers | joachimvh, rubensworks, rubenverborgh, dexagod, jeswr |
| Keywords | comunica, actor, dereference, file |

## Links

- npm: https://www.npmjs.com/package/@comunica/actor-dereference-file
- Repository: https://github.com/comunica/comunica
- Homepage: https://comunica.dev/
- Issues: https://github.com/comunica/comunica/issues
- Funding: https://opencollective.com/comunica-association
- npm.io page: https://npm.io/package/@comunica/actor-dereference-file

## Dependencies (3)

- [@comunica/core](https://npm.io/package/@comunica/core.md) ^5.4.0
- [@comunica/bus-dereference](https://npm.io/package/@comunica/bus-dereference.md) ^5.4.0
- [@comunica/context-entries](https://npm.io/package/@comunica/context-entries.md) ^5.4.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 5.4.0 (latest) — 2026-09-14
- 4.4.2-alpha.49.0 (next) — 2025-10-22
- 5.3.0 — 2026-07-10
- 5.2.3 — 2026-05-26
- 5.2.2 — 2026-05-03
- 5.2.0 — 2026-04-14
- 5.1.3 — 2026-01-30
- 5.1.0 — 2026-01-16
- 5.0.3 — 2026-01-12
- 5.0.2 — 2026-01-12
- 5.0.0 — 2026-01-08
- 4.5.0 — 2025-11-18
- 4.4.1 — 2025-09-25
- 4.4.0 — 2025-09-17
- 4.2.0 — 2025-04-29
- … 69 more at https://npm.io/package/@comunica/actor-dereference-file/versions

## README

# Comunica File Dereference Actor

[![npm version](https://badge.fury.io/js/%40comunica%2Factor-dereference-file.svg)](https://www.npmjs.com/package/@comunica/actor-dereference-file)

A comunica File Dereference Actor.

An [Dereference](https://github.com/comunica/comunica/tree/master/packages/bus-dereference) actor that
resolves an URL to a local file (optionally starting with `file://`).

This actor refuses to dereference files if the `@comunica/bus-dereference:blockFileAccess` context entry is enabled.
This is for example set for SERVICE targets,
so that queries from untrusted parties can not read arbitrary local files.

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).

## Install

```bash
$ yarn add @comunica/actor-dereference-file
```

## Configure

After installing, this package can be added to your engine's configuration as follows:
```text
{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-dereference-file/^5.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:dereference/actors#file",
      "@type": "ActorRdfDereferenceFile"
    }
  ]
}
```

---
_Source: https://npm.io/package/@comunica/actor-dereference-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
