# min-1px

> A 1 pixel transparent min image.

Latest version **1.0.0** (published 2022-06-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install min-1px
pnpm add min-1px
yarn add min-1px
bun add min-1px
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-06-15 |
| First published | 2022-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Lete乐特 |
| Maintainers | lete114 |
| Keywords | 1px, gif, png, min, image, base64, 1 pixel, transparent |

## Links

- npm: https://www.npmjs.com/package/min-1px
- Repository: https://github.com/Lete114/min-1px
- Homepage: https://github.com/Lete114/min-1px#readme
- Issues: https://github.com/Lete114/min-1px/issues
- npm.io page: https://npm.io/package/min-1px

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-06-15

## README

## Usage

Browser CDN

```html
<!-- Base64 -->
<script src="https://cdn.jsdelivr.net/npm/min-1px"></script>
<script>
  const img1 = document.createElement('img')
  img1.src = px.GIF
  document.body.appendChild(img1)

  //  PNG
  const img2 = document.createElement('img')
  img2.src = px.png
  document.body.appendChild(img2)
</script>

<!-- Image -->

<img src="https://cdn.jsdelivr.net/npm/min-1px/dist/1px.gif" alt="min-1px GIF" />
<img src="https://cdn.jsdelivr.net/npm/min-1px/dist/1px.png" alt="min-1px PNG" />
```

ESModule Modules

```js
import px from 'min-1px'
import gif from 'min-1px/dist/1px.gif' // image
import png from 'min-1px/dist/1px.png' // image
console.log(px.GIF) // base64
console.log(px.PNG) // base64
```

CommonJS Modules

```js
const px = require('min-1px')
const gif = require('min-1px/dist/1px.gif') // image
const png = require('min-1px/dist/1px.png') // image
console.log(px.GIF) // base64
console.log(px.PNG) // base64
```

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