0.0.5 • Published 7 years ago

jiugongge v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

jiugongge

Simple input parser for 3x3 Grid coordinate system

Defination:

  • Horizontal coords: L(eft), R(ight), HC(horizontal center)
  • Vertical coords: T(op), B(ottom), VC(vertical center)

    The parse function take in a string contains coord chars (case-insensitive), and returns a valid array of H-coords & V-coords. The second parameter indicates strict or loose (default) mode, when in strict, it yeilds error when meets dirty string

    Example:

'lt' or 'tl' or 'ascst^&*l' => ['L', 'T']
0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago