# amap

> Extract inline source map to another file

Latest version **1.0.7** (published 2016-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install amap
pnpm add amap
yarn add amap
bun add amap
```

## 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.7 |
| Published | 2016-08-14 |
| First published | 2016-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Taka Okunishi |
| Maintainers | okunishinishi |
| Keywords | sourcemap |

## Links

- npm: https://www.npmjs.com/package/amap
- Repository: https://github.com/a-labo/amap
- Homepage: https://github.com/a-labo/amap#readme
- Issues: https://github.com/a-labo/amap/issues
- npm.io page: https://npm.io/package/amap

## Dependencies (5)

- [co](https://npm.io/package/co.md) ^4.6.0
- [asfs](https://npm.io/package/asfs.md) ^1.0.5
- [filedel](https://npm.io/package/filedel.md) ^2.0.4
- [exorcist](https://npm.io/package/exorcist.md) ^0.4.0
- [filecopy](https://npm.io/package/filecopy.md) ^2.0.2

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2016-08-14
- 1.0.6 — 2016-08-13
- 1.0.5 — 2016-08-13
- 1.0.3 — 2016-08-08
- 1.0.2 — 2016-07-21
- 1.0.1 — 2016-07-21
- 1.0.0 — 2016-07-21

## README

amap
==========

<!---
This file is generated by ape-tmpl. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]

[bd_repo_url]: https://github.com/a-labo/amap
[bd_travis_url]: http://travis-ci.org/a-labo/amap
[bd_travis_shield_url]: http://img.shields.io/travis/a-labo/amap.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/a-labo/amap
[bd_travis_com_shield_url]: https://api.travis-ci.com/a-labo/amap.svg?token=
[bd_license_url]: https://github.com/a-labo/amap/blob/master/LICENSE
[bd_codeclimate_url]: http://codeclimate.com/github/a-labo/amap
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/a-labo/amap.svg?style=flat
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/a-labo/amap.svg?style=flat
[bd_gemnasium_url]: https://gemnasium.com/a-labo/amap
[bd_gemnasium_shield_url]: https://gemnasium.com/a-labo/amap.svg
[bd_npm_url]: http://www.npmjs.org/package/amap
[bd_npm_shield_url]: http://img.shields.io/npm/v/amap.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Extract inline source map to another file

<!-- Description End -->


<!-- Overview Start -->
<a name="overview"></a>



<!-- Overview End -->


<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->

<a name="section-doc-guides-01-installation-md"></a>

Installation
-----

```bash
$ npm install amap --save
```


<!-- Section from "doc/guides/01.Installation.md.hbs" End -->

<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->

<a name="section-doc-guides-02-usage-md"></a>

Usage
---------

```javascript
'use strict'

const amap = require('amap')
const co = require('co')

co(function * () {
  yield amap('ui/index.js') // index.js -> index.js + index.js.map
}).catch((err) => console.error(err))

```


<!-- Section from "doc/guides/02.Usage.md.hbs" End -->

<!-- Section from "doc/guides/03.Signature.md.hbs" Start -->

<a name="section-doc-guides-03-signature-md"></a>

Signature
---------

`amap(filename, options) -> Promise`

### Params

| Name | Type | Description |
| ----- | --- | -------- |
| filename | string | Filename to extract |
| options | Object | Optional settings |
| options.dest | string | Path to save file (which has no longer contains sourcemap) |
| options.map | string | Path to save sourcemap file |



<!-- Section from "doc/guides/03.Signature.md.hbs" End -->


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/a-labo/amap/blob/master/LICENSE).

<!-- LICENSE End -->


<!-- Links Start -->
<a name="links"></a>

Links
------

+ [a-labo][a_labo_url]

[a_labo_url]: https://github.com/a-labo

<!-- Links End -->

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