# unix-seqpacket

> Small library to allow nodejs to open a unix domain socket of sock_seqpacket format

Latest version **1.0.3** (published 2021-12-17) · CC0 license · 0 weekly downloads

## Install

```sh
npm install unix-seqpacket
pnpm add unix-seqpacket
yarn add unix-seqpacket
bun add unix-seqpacket
```

## 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.0.3 |
| Published | 2021-12-17 |
| First published | 2021-12-13 |
| Weekly downloads | 0 |
| License | CC0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 12.0 |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1 |
| Maintainers | richardah |
| Keywords | unix, domain, socket, seqpacket |

## Links

- npm: https://www.npmjs.com/package/unix-seqpacket
- Repository: https://github.com/richardah/unix-seqpacket
- Homepage: https://github.com/richardah/unix-seqpacket#readme
- Issues: https://github.com/richardah/unix-seqpacket/issues
- npm.io page: https://npm.io/package/unix-seqpacket

## Dependencies (1)

- [nan](https://npm.io/package/nan.md) ^2.15.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-12-17
- 1.0.2 — 2021-12-13

## README

# unix-seqpacket
Add unix domain socket sock_seqpacket support to nodejs

## Install
```bash
npm install unix-seqpacket
```

## Use
```js
const seq = require('unix-seqpacket')
const fs = require('fs')
let sock_fd = seq.open('/some/domain/socket.sock')
let read_bytes = fs.readSync(sock_fd)

// ... also can use seq.available(sock_fd) to get the number of bytes immediately available for reading

seq.close(sock_fd);
```

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