# node-matrix-file-types

> Map files via file extention to a Squiz Matrix file assets

Latest version **1.0.5** (published 2016-09-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-matrix-file-types
pnpm add node-matrix-file-types
yarn add node-matrix-file-types
bun add node-matrix-file-types
```

## 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.0.5 |
| Published | 2016-09-25 |
| First published | 2015-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Josh Gillies |
| Maintainers | joshgillies |
| Keywords | squiz, matrix, mysource, my, source, files, file, assets |

## Links

- npm: https://www.npmjs.com/package/node-matrix-file-types
- Repository: https://github.com/joshgillies/node-matrix-file-types
- Homepage: https://github.com/joshgillies/node-matrix-file-types#readme
- Issues: https://github.com/joshgillies/node-matrix-file-types/issues
- npm.io page: https://npm.io/package/node-matrix-file-types

## 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

- 1.0.5 (latest) — 2016-09-25
- 1.0.4 — 2015-07-10
- 1.0.3 — 2015-07-01
- 1.0.2 — 2015-06-30
- 1.0.1 — 2015-06-19
- 1.0.0 — 2015-06-19

## README

# node-matrix-file-types

Map files via file extention to a Squiz Matrix file assets

[![Build Status](https://travis-ci.org/joshgillies/node-matrix-file-types.svg)](https://travis-ci.org/joshgillies/node-matrix-file-types)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

## Example

```js
var fileAsset = require('node-matrix-file-type')

fileAsset('image.jpg') // 'image'
fileAsset('styles.css') // 'css_file'
fileAsset('scripts.js') // 'js_file'
fileAsset('file.txt') // 'text_file'
fileAsset('unknown.file') // 'file'

// etc

```

## API

### var fileAsset = require('node-matrix-file-types')

### fileAsset(file)

The `file` argument accepts a String representing the the file you wish to retrieve
an appropriate file asset type code for. Returns `'file'` by default.

## Licence

MIT

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