parten
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

parten

import { translate, integer, seq, ignore } from "parten";

const segment = integer();
const dot = ignore('.')

const ipV4 = seq`${segment}.${segment}.${segment}.${segment}`;

const { value } = translate("192.168.1.1", ipV4);

// ["192","168","1","1"]
console.log(value);

Readme

Keywords

none

Package Sidebar

Install

npm i parten

Weekly Downloads

0

Version

0.0.10

License

MIT

Unpacked Size

14.9 kB

Total Files

6

Last publish

Collaborators

  • coder-ka