# file-resolver

> Resolves to a file path given the source file, locale and file extension, used in kraken projects

Latest version **2.0.0-3** (published 2015-07-24) · Apache-2.0 license · 0 weekly downloads

## Install

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

## 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 | 2.0.0-3 |
| Published | 2015-07-24 |
| First published | 2014-03-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Poornima Venkatakrishnan |
| Maintainers | pvenkatakrishnan, totherik, jeffharrell, aredridel |

## Links

- npm: https://www.npmjs.com/package/file-resolver
- Repository: https://github.com/krakenjs/file-resolver
- Homepage: https://github.com/krakenjs/file-resolver#readme
- Issues: https://github.com/krakenjs/file-resolver/issues
- npm.io page: https://npm.io/package/file-resolver

## Dependencies (4)

- [bcp47](https://npm.io/package/bcp47.md) ^1.1.2
- [debuglog](https://npm.io/package/debuglog.md) ^1.0.1
- [graceful-fs](https://npm.io/package/graceful-fs.md) ~2.0.1
- [bcp47-stringify](https://npm.io/package/bcp47-stringify.md) ^1.0.0

## Recent versions

- 2.0.0-3 (latest) — 2015-07-24
- 2.0.0-2 — 2015-07-16
- 2.0.0-1 — 2015-07-16
- 2.0.0-0 — 2015-07-16
- 1.0.2 — 2015-02-10
- 1.0.1 — 2015-02-10
- 1.0.0 — 2014-09-16
- 0.0.1 — 2014-03-24

## README

file-resolver
=============

Lead Maintainer: [Aria Stewart](https://github.com/aredridel)  

[![Build Status](https://travis-ci.org/krakenjs/file-resolver.svg?branch=master)](https://travis-ci.org/krakenjs/file-resolver)

Used in kraken based projects for resolving file paths when given the locale, source file name, and the file extension.

Simple Usage:

```javascript
var fr = require('fileResolver'),
    resolver = fr.create({root: 'path/to/templates', fallback: 'en_US', ext: 'dust'}),
    fileInfo = resolver.resolve('foo', 'es_ES');

//fileInfo = {
//  root: 'path/to/templates/ES/es',
//  file: 'path/to/templates/ES/es/foo.dust',
//  ext: 'dust',
//  name: 'foo'
//}
```

Running Tests:

```
To Run tests
$npm test

To Run Coverage
$npm run-script cover

To Run linting
$npm run-script lint
```

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