clrjx
v1.5.2
Published
To help
Downloads
2
Readme
clrjx
Readme before reading the readme
- This is a helper library intended to be used only on development environments. It's an evolution of colorxjs, no longer maintained
Documentation
intervalo(seconds,length) - Observable
- intervals during seconds, length is optional
('variableName', variable)
log(variable)
- logs on the console
('variableName', variable)
range(de,ate) - Observable
from(obj) - Observable
of(obj) - Observable
timer(quanto) - Observable
regressiva(quanto) - Observable
composeString(first, end, middle)
readFile(which) - Promise
readFolder(where) - Promise
readDir2Pack(where, packName) - Promise
write(what, where)
writeUnquoted(what, where)
writeSync(what, where) - Promise
- Returns
true
if successfully written file
emitAfter(howMany, what, showing, during?) - Observable
replaceAt(string, index, replace)
promptToConsole(fileToIterate, identifier, message, howMany) - Promise
promptToWrite(message, errorMessage, id) - Promise
getPostsPromise(page, perPage, endpoint, username, password) - Promise
findPostsPromise(what, page, perPage, endpoint, username, password) - Promise
getArrayOfUniqueNums(arr, to)
getRandomNum(from, to)
replaceWhitespace(string, what)
replacePunctuation(string)
shrink(str, toHowMany)
findAllIndexesOf(what, where)
err(?when)
- Just throw an error