Skip to main content

@w5s/byte-size

W5S Time manipulation (@w5s/time)

NPM Version License

Installation

npm install @w5s/time

Usage

import { Time, TimeDuration } from '@w5s/time';
import { Task } from '@w5s/task';

export function nowPlusTwoMinutes() {
return Task.map(Time.now(), (currentTime) => Time['+'](currentTime, TimeDuration({ minutes: 2 })));
}

License

MIT © Julien Polo julien.polo@gmail.com

Index

Type Aliases

ByteSize

ByteSize: ByteSizeType

ByteSizeStandard

ByteSizeStandard: Enum.ValueOf<typeof ByteSizeStandard>

Variables

constByteSizeStandard

ByteSizeStandard: Enum<{ IEC: IEC; SI: SI; typeName: ByteSizeStandard }> = ...

Byte size standards

Page Options