0.0.10 • Published 10 months ago

parten v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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);
0.0.10

10 months ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago