@thomann/sourcemap-service

1.4.1 • Public • Published

Sourcemap Service

microservice for providing versioned sourcemaps


Installation

Clone this repository and run the start script

$ git clone https://github.com/thomn/sourcemap-service.git
$ cd sourcemap-service
$ npm run start

Endpoints

  • GET: /sm: -> retrival
  • POST: /sm: -> upload
  • DELETE: /sm: -> removal

QueryParameters

  • v (mandatory): version, only integer values
  • n (mandatory): name, only alphanummeric values except .-_

Examples

post a map by a POST requesrt

curl -v -X POST -H "Content-Type: application/json" -d @styles.css.map "http://localhost:80/sm?v=2&n=styles.map"

get a map by a GET requesrt

http://localhost:80/sm?v=8&n=foo.js.map

delete a map by a DELETE request

http://localhost:80/sm?v=8&n=foo.js.map

Package Sidebar

Install

npm i @thomann/sourcemap-service

Weekly Downloads

1

Version

1.4.1

License

ISC

Unpacked Size

86.4 kB

Total Files

80

Last publish

Collaborators

  • thomn
  • sovrin