JSPM

source-map-to-comment

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1330
  • Score
    100M100P100Q109344F
  • License MIT

Convert a Source Map object to a comment

Package Exports

  • source-map-to-comment

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (source-map-to-comment) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

source-map-to-comment Build Status

Convert a Source Map object to a comment

Install

$ npm install --save source-map-to-comment

Usage

const sourceMapToComment = require('source-map-to-comment');
const sourceMap = getSourceMapFromSomething();

sourceMapToComment(sourceMap);
//=> '//# sourceMappingURL=data:application/json;base64,eyJ2Z...'

sourceMapToComment(sourceMap, {type: 'css'});
//=> '/*# sourceMappingURL=data:application/json;base64,eyJ2Z... */'

License

MIT © Sindre Sorhus