amap

Extract inline source map to another file


Keywords
sourcemap
License
MIT
Install
npm install amap@1.0.1

Documentation

amap

Build Status Code Climate Code Coverage npm Version JS Standard

Extract inline source map to another file

Installation

$ npm install amap --save

Usage

'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))

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

License

This software is released under the MIT License.

Links