Skip to content

Latest commit

 

History

History
80 lines (58 loc) · 954 Bytes

api_wishlist.md

File metadata and controls

80 lines (58 loc) · 954 Bytes

file

file.abs()
file.open()
file.size()
file.isdir()
file.exists()
file.ls()
file.chmod() (and getter?)
file.stdin
file.stdout
file.stderr

file object members:

f.read()
f.readline()
f.iterate()
f.lines()
f.write()
f.size()
f.close()

process

process.open()

process object members:

p.read()
p.readline()
p.iterate()
p.lines()
p.write()
p.close()

string

split()
join()
chomp() (trim?)
substr()

re

re.match()
re.gmatch()
re.sub()
re.gsub()

http

http.get()
http.post()

JSON

JSON.parse()
JSON.stringify()

os

system()
pipein() or receive() or input() (use backticks like Perl?)

time

now()       ? (returns ms? us?)
format()    ? (calls strftime)

other (unsorted)

rand()
int()
float()
string()
splice()
sort()
keys()