1.0.7 • Published 8 years ago

amap v1.0.7

Weekly downloads
39
License
MIT
Repository
github
Last release
8 years ago

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

NameTypeDescription
filenamestringFilename to extract
optionsObjectOptional settings
options.deststringPath to save file (which has no longer contains sourcemap)
options.mapstringPath to save sourcemap file

License

This software is released under the MIT License.

Links

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago