colorxjs
v1.4.4
Published
To help
Downloads
2
Readme
colorxjs
Readme before reading the readme
- This is a helper library intended to be used only on development environments.
Documentation
intervalo(seconds,length) - Observable
log(variable)
- logs on the console
('variableName', variable)
range(de,ate) - Observable
from(obj) - Observable
shuffle(array) - 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