1.4.14 • Published 4 years ago
zaman-statistics-generator v1.4.14
Zaman Statistics Generator
Generate time statistics based on a set of punch clock entries.
Installation
With NPM:
npm install zaman-statistics-generator
With Yarn:
yarn add zaman-statistics-generator
Usage
The module exports a method called compute
that accepts two arguments:
- the set of objects containing the punch clock entries (array, required);
- the work shift to consider in the process (integer, optional, defaulting to 8).
Example
The first argument is an array of objects, each containing the date and the punches. It should be in the following format:
import { compute } from 'zaman-statistics-generator'
const punches = [
{ date: '2021-10-01', punches: ['09:00', '12:00', '13:00', '18:00'] }
]
const statistics = compute(punches)
1.4.14
4 years ago
1.4.13
4 years ago
1.4.12
4 years ago
1.4.11
4 years ago
1.4.10
4 years ago
1.4.9
4 years ago
1.4.8
4 years ago
1.4.7
4 years ago
1.4.6
4 years ago
1.4.5
4 years ago
1.4.4
4 years ago
1.4.3
4 years ago
1.4.2
4 years ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.5
4 years ago
1.3.4
4 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago