nyinaa 0.0.1
A collection of reusable functions & utilities (timers, validators, sanitizers, ranges, logging, ...)
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Nyinaa
A collection of reusable functions & utilities (timers, validators, sanitizers, ranges, logging, ...)
import nyinaa.timers : setInterval, stopInterval;
import std.stdio : writeln;
import std.datetime : seconds;
import core.thread.osthread : Thread;
void main()
{
// "tid" of type Tid can be referenced
// to stop setInterval()
auto tid = setInterval(1000, { writeln("tick"); });
auto tid2 = setInterval(3000, { writeln("tock"); });
Thread.sleep(12.seconds);
// stop running setInterval()
stopInterval(tid);
stopInterval(tid2);
}
To-do
Any generic validator form validation, etc. is welcomed
- Registered by Lawrence Aberba
- 0.0.1 released 4 years ago
- aberba/nyinaa
- github.com/aberba/nyinaa
- BSL-1.0
- Copyright © 2020, Lawrence Aberba
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.5 2021-Jan-18 0.0.4 2020-Jul-30 0.0.3 2020-Jul-25 0.0.2 2020-Jul-25 0.0.1 2020-Jul-25 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
18 downloads total
-
- Score:
- 1.0
- Short URL:
- nyinaa.dub.pm