# as-convert-seconds

> Convert-Seconds To Hours, Minutes, and Seconds For AssemblyScript

Latest version **1.0.0** (published 2021-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install as-convert-seconds
pnpm add as-convert-seconds
yarn add as-convert-seconds
bun add as-convert-seconds
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-03-17 |
| First published | 2021-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 213.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | JairusSW |
| Maintainers | slicewire-dev |
| Keywords | assemblyscript, convert, seconds, time |

## Links

- npm: https://www.npmjs.com/package/as-convert-seconds
- Repository: https://github.com/JairusSW/as-convert-seconds
- Homepage: https://github.com/JairusSW/as-convert-seconds#readme
- Issues: https://github.com/JairusSW/as-convert-seconds/issues
- npm.io page: https://npm.io/package/as-convert-seconds

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-03-17

## README

# Convert-Seconds
**Convert Seconds To Hours, Minutes, And Seconds**

## About
- AssemblyScript Compatible
- Isomorphic (Browser / Node)

## Installation
```bash
~ npm install as-convert-seconds --save
```

## Usage

**Basic Usage**
```js
import { convertSeconds } from 'as-convert-seconds'

const formatted = convertSeconds('4923')
//=> Array<number> [Hours, Minutes, Seconds]

console.log('Hours:' + formatted[0])
// 1h
console.log('Minutes:' + formatted[1])
// 22m
console.log('Seconds:' + formatted[2])
// 3s
```

## API

### convertSeconds(seconds: string) -->> Array<number>
Convert Seconds To Hours, Minutes, And Seconds And Return An Array In The Same Order. (hr, mim, sec)

---
_Source: https://npm.io/package/as-convert-seconds · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
