amap

1.0.7 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i amap

Weekly Downloads

75

Version

1.0.7

License

MIT

Last publish

Collaborators

  • okunishinishi