# @thomann/sourcemap-service

> private sourcemaps provider

Latest version **1.4.1** (published 2019-02-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install @thomann/sourcemap-service
pnpm add @thomann/sourcemap-service
yarn add @thomann/sourcemap-service
bun add @thomann/sourcemap-service
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2019-02-26 |
| First published | 2019-02-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 84.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Oleg Kamlowski |
| Maintainers | sovrin, thomn, filecage |
| Keywords | sourcemaps, micro, service |

## Links

- npm: https://www.npmjs.com/package/@thomann/sourcemap-service
- Repository: https://github.com/thomn/sourcemap-service
- Homepage: https://github.com/thomn/sourcemap-service#readme
- Issues: https://github.com/thomn/sourcemap-service/issues
- npm.io page: https://npm.io/package/@thomann/sourcemap-service

## Dependencies (3)

- [micro](https://npm.io/package/micro.md) ^9.3.3
- [morgan](https://npm.io/package/morgan.md) ^1.9.1
- [micro-r](https://npm.io/package/micro-r.md) ^0.1.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.4.1 (latest) — 2019-02-26

## README

<h1 align="left">Sourcemap Service</h1>

microservice for providing versioned sourcemaps

***

## Installation
Clone this repository and run the start script

```bash
$ 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
```bash
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
```

---
_Source: https://npm.io/package/@thomann/sourcemap-service · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
