@tibbo-tps/socket-name-parser

0.0.4 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @tibbo-tps/socket-name-parser

      Weekly Downloads

      4

      Version

      0.0.4

      License

      MIT

      Unpacked Size

      3.23 kB

      Total Files

      4

      Last publish

      Collaborators

      • tibbo-tps