Socket
Socket
Sign inDemoInstall

parse-base64vlq-mappings

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    parse-base64vlq-mappings

Parses out base64 VLQ encoded mappings.


Version published
Weekly downloads
539
increased by13.47%
Maintainers
1
Install size
14.0 kB
Created
Weekly downloads
 

Readme

Source

parse-base64vlq-mappings build status

Parses out base64 VLQ encoded mappings.

The code is mostly lifted from mozilla's source-map module in order to separate out the parse function into its own module.

var parse = require('parse-base64vlq-mappings');

var mappings = parse('AAAA;AACA;AACA;AACA;AACA');
console.log(mappings);
[ { generated: { line: 1, column: 0 },
    original: { line: 1, column: 0 } },
  { generated: { line: 2, column: 0 },
    original: { line: 2, column: 0 } },
  { generated: { line: 3, column: 0 },
    original: { line: 3, column: 0 } },
  { generated: { line: 4, column: 0 },
    original: { line: 4, column: 0 } },
  { generated: { line: 5, column: 0 },
    original: { line: 5, column: 0 } } ]

Caveat

Main intended use is either for testing generated mappings or to add offsets to existing mappings.

Therefore is is assumed that all mappings relate to the same generated/original file, i.e. only information about generated line and column vs. original line and column is preserved.

Additionally all name information is disregarded during the parse.

Keywords

FAQs

Last updated on 06 Jul 2013

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc