# @tibbo-tps/socket-name-parser

> Normilize LTPP socket name

Latest version **0.0.4** (published 2023-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tibbo-tps/socket-name-parser
pnpm add @tibbo-tps/socket-name-parser
yarn add @tibbo-tps/socket-name-parser
bun add @tibbo-tps/socket-name-parser
```

## 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.4 |
| Published | 2023-04-26 |
| First published | 2016-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Leonid Polyakov |
| Maintainers | tibbo-tps |
| Keywords | tibbo, ltps, sockets |

## Links

- npm: https://www.npmjs.com/package/@tibbo-tps/socket-name-parser
- Repository: https://github.com/tibbotech/node-ltps
- Homepage: https://github.com/tibbotech/node-ltps#readme
- Issues: https://github.com/tibbotech/node-ltps/issues
- npm.io page: https://npm.io/package/@tibbo-tps/socket-name-parser

## Recent versions

- 0.0.4 (latest) — 2023-04-26
- 0.0.3 — 2023-04-26
- 0.0.2 — 2016-08-25
- 0.0.1 — 2016-08-25

## README

# socket-name-parser

Normilize LTPP socket and pin names

## Methods:

### parseSocketName(name)

Returns socket name or null if name can't be normalized.

E.g. S01 => s1, S110 => null

### parsePinName(name)

Returns pin name or null if name can't be normalized.

E.g. s01A => S1A, s12F => null

### parseSocketNamesList(names)

* names - a single socket name or names array.

Returns list of names or null if any of names can't be normalized.

E.g. S01 => s1, ["s05","S12"] => ["s5","s12"], ["s110",4] => null

---
_Source: https://npm.io/package/@tibbo-tps/socket-name-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
