# file-dependencies

> Allows to specify fileDependencies in package.json to fetch local and remote files

Latest version **1.2.1** (published 2015-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install file-dependencies
pnpm add file-dependencies
yarn add file-dependencies
bun add file-dependencies
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2015-02-10 |
| First published | 2015-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | yes |
| Author | Massimiliano Marcon |
| Maintainers | mmarcon |
| Keywords | npm, package.json, dependencies |

## Links

- npm: https://www.npmjs.com/package/file-dependencies
- npm.io page: https://npm.io/package/file-dependencies

## Dependencies (2)

- [q](https://npm.io/package/q.md) 1.1.2
- [request](https://npm.io/package/request.md) 2.53.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.2.1 (latest) — 2015-02-10
- 1.0.1 — 2015-02-09

## README

#fileDependencies support for package.json

This module extends `package.json` with an additional property: `fileDependencies`.

With `fileDependencies` it is possible to express project dependencies based on files located somewhere else in the filesystem or avalaible somewhere on the internet.

If a node projects requires some additional libraries or binaries that do not come from NPM – maybe they are developed in other languages it is possible to fetch them as file dependencies.

#Example

    {
      "name": "file-dependencies",
      "version": "1.0.0",
      "author": "Massimiliano Marcon <me@marcon.me> (http://marcon.me)",
      "license": "MIT",
      "dependencies": {
        "q": "^1.1.2",
        "request": "^2.53.0",
        "file-dependencies": "1.0.0"
      },
      "fileDependencies": {
        "selenium-server-standalone.jar": "http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar",
      }
    }

With this `package.json` NPM will fetch the `file-dependencies` module, and then `selenium-server-standalone-2.43.1.jar` will be downloaded from the Selenium website and copied in `node_modules/file_dependencies`. The downloaded file will be named `selenium-server-standalone.jar`.

From the application it will be possible to use child process to instantiate the selenium server.

#Platform/Architecture specific binaries

It is possible to describe file dependencies with an object format in order to target specific platforms and architectures.

    "fileDependencies": {
      "selenium-server-standalone.jar": {
        "darwin": "http://chromedriver.storage.googleapis.com/2.14/chromedriver_mac32.zip",
        "linux": {
            "ia32": "http://chromedriver.storage.googleapis.com/2.14/chromedriver_linux32.zip",
            "x64": "http://chromedriver.storage.googleapis.com/2.14/chromedriver_linux64.zip"
        },
        "win32": "http://chromedriver.storage.googleapis.com/2.14/chromedriver_win32.zip"
      }
    }

#TODO

 * Automatic archive decompression (zip, tar.gz)

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