# ext-map

> just an object that maps `src` file extensions to `dest` file extensions as key/value pairs (e.g. `{'.less': '.css'}`). Useful for dynamically rewriting paths in tasks/plugins. pull requests welcome.

Latest version **1.0.1** (published 2015-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install ext-map
pnpm add ext-map
yarn add ext-map
bun add ext-map
```

## 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.1 |
| Published | 2015-05-04 |
| First published | 2014-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | convert, dest, ext, extensions, extname, file, filename, filepath, format, gulpfriendly, language, map, parse, path, pre-processor, src, type |

## Links

- npm: https://www.npmjs.com/package/ext-map
- Repository: https://github.com/jonschlinkert/ext-map
- Issues: https://github.com/jonschlinkert/ext-map/issues
- npm.io page: https://npm.io/package/ext-map

## 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.1 (latest) — 2015-05-04
- 1.0.0 — 2015-01-15
- 0.1.1 — 2014-11-14
- 0.1.0 — 2014-11-13

## README

# ext-map [![NPM version](https://badge.fury.io/js/ext-map.svg)](http://badge.fury.io/js/ext-map)

> just an object that maps `src` file extensions to `dest` file extensions as key/value pairs (e.g. `{'.less': '.css'}`). Useful for dynamically rewriting paths in tasks/plugins. pull requests welcome.

## Related projects

* [gulp-extname](https://github.com/jonschlinkert/gulp-extname): gulp plugin to dynamically rewrite dest extensions based on src extensions.
* [rewrite-ext](https://github.com/jonschlinkert/rewrite-ext): Automatically re-write the destination extension of a filepath based on the source extension. e.g … [more](https://github.com/jonschlinkert/rewrite-ext)

Install with [npm](https://www.npmjs.com/)

```bash
npm i ext-map --save
```

## Usage

```js
var exts = require('ext-map');
```

### Mapped extensions

Pull requests to add mappings would be appreciated.

**HTML**

* `.md`: => `.html`
* `.hbs`: => `.html`
* `.slim`: => `.html`
* `.swig`: => `.html`
* `.tmpl`: => `.html`
* `.html`: => `.html`
* `.htm`: => `.html`

**css**

* `.less`: => `.css`
* `.styl`: => `.css`
* `.sass`: => `.css`
* `.scss`: => `.css`
* `.css`: => `.css`

**js**

* `.coffee`: => `.js`
* `.ls`: => `.js`
* `.ts`: => `.js`
* `.js`: => `.js`

## Tests

Install dev dependencies:

```bash
npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/ext-map/issues)

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 04, 2015._[assemble]: http://assemble.io
[template]: https://github.com/jonschlinkert/template
[verb]: https://github.com/assemble/verb

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