parten
v0.0.10
Published
```ts import { translate, integer, seq, ignore } from "parten";
Downloads
16
Readme
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);