-
Notifications
You must be signed in to change notification settings - Fork 16
/
yn.node.txt
18 lines (13 loc) · 1.7 KB
/
yn.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
YN
VERSION ==> #5.0.0
YN(VAL[, OPTS])->BOOL #Converts to BOOL from:
# - 'y[es]|n[o]'
# - 'true|false' or true|false
# - '1|0' or 1|0
# - 'on|off'
#Trim input. Case-insensitive
#OPTS:
# - default BOOL (def: undefined): when not matching any above
# - lenient BOOL (def: false): allow typos in 'yes|no' due to typing one of the neighbor keys