1.0.13 • Published 1 year ago

footils v1.0.13

Weekly downloads
5
License
MIT
Repository
github
Last release
1 year ago

footils

Kitchen sink utilities and framework-ish js for node and browser.

Named (foo)tils because other names for utility libs on npm were taken and foo is foo which rhymes with "u".

timer for node

npm install --save footils
const { timer } = require('footils');
// logging example

timer.start('some task');
// do the task
timer.log('some task');
// output the average time taken
// some task: 1.23 s


// return a value example

timer.start('some task');
// do the task
const seconds = timer.end('some task');
// seconds variable holds the value 1.23


// log multiple/averages example

timer.start('start task');
// do the task
timer.end('start task');

timer.start('average task');
// do the task
timer.end('average task');

timer.start('average task');
// do the task again
timer.end('average task');

timer.log();
// output averages of all
// start task: 0.23 ms
// average task: 1.23 s
1.0.13

1 year ago

1.0.11

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago