New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

amap

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amap

Extract inline source map to another file

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

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.

  • a-labo

Keywords

sourcemap

FAQs

Package last updated on 14 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts