Readme
simple-strs
Tiny string helpers for bnl. Pure-bnl example — no compilation, runs on every platform that runs bnl.
Install
bpm install simple-strsUse
import "simple-strs" as s;
print(s.repeat("ab", 3)); // ababab
print(s.pad_left("7", 3, "0")); // 007
print(s.is_blank(" ")); // trueAPI
repeat(s, n)— repeatsntimespad_left(s, width, ch)— left-padswithchtowidthcharactersis_blank(s)—trueifsis empty or only whitespace
Publish (for the maintainer)
bpm publishThe entire workflow for a pure-bnl library: one bnl.json, one source file, bpm publish.
MIT licensed.