# snapsvg-cjs

> SnapSVG in CommonJS format, works out-of-the-box with Webpack

Latest version **0.0.6** (published 2017-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install snapsvg-cjs
pnpm add snapsvg-cjs
yarn add snapsvg-cjs
bun add snapsvg-cjs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2017-08-15 |
| First published | 2016-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 42 |
| Author | Glen Maddern |
| Maintainers | geelen |
| Keywords | snapsvg, svg, webpack |

## Links

- npm: https://www.npmjs.com/package/snapsvg-cjs
- Repository: https://github.com/geelen/Snap.svg-cjs
- Homepage: https://github.com/geelen/Snap.svg-cjs#readme
- Issues: https://github.com/geelen/Snap.svg-cjs/issues
- npm.io page: https://npm.io/package/snapsvg-cjs

## Dependencies (1)

- [snapsvg](https://npm.io/package/snapsvg.md) 0.5.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2017-08-15
- 0.0.4 — 2016-08-02
- 0.0.3 — 2016-01-20
- 0.0.2 — 2016-01-20
- 0.0.1 — 2016-01-20

## README

# SnapSVG in CommonJS (for Webpack)

This project simply unwraps the excellent [SnapSVG](https://github.com/adobe-webplatform/Snap.svg) from its published AMD format and hosts it on NPM as CommonJS in a package called `snapsvg-cjs`. This package then works out-of-the-box with Webpack, without needing any [import-loader hax](https://github.com/adobe-webplatform/Snap.svg/issues/341#issuecomment-143267637).

### Running

```
npm install
npm run build
npm run start
```

Now hit `http://localhost:3474/test/test.html` to run SnapSVG's own test suite against this project.

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