# js-date-to-string

> Converts js dates to meaningful strings

Latest version **1.2.2** (published 2022-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-date-to-string
pnpm add js-date-to-string
yarn add js-date-to-string
bun add js-date-to-string
```

## 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.2.2 |
| Published | 2022-07-27 |
| First published | 2022-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mohammad Abkal |
| Maintainers | mohamedabkal |
| Keywords | js-date, date, js |

## Links

- npm: https://www.npmjs.com/package/js-date-to-string
- Repository: https://github.com/mohamedabkal/js-date-to-string
- Homepage: https://github.com/mohamedabkal/js-date-to-string#readme
- Issues: https://github.com/mohamedabkal/js-date-to-string/issues
- npm.io page: https://npm.io/package/js-date-to-string

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.2.2 (latest) — 2022-07-27
- 1.2.1 — 2022-07-27
- 1.2.0 — 2022-07-27
- 1.1.0 — 2022-07-27
- 1.0.0 — 2022-07-27

## README

# Introduction
A small and lightweight library for calculating elapsed time in JavaScript.

# Installation
```
npm i js-date-to-string
```

# Usage
```js
// current date is 2022-07-27 1:30:00
const someDate = new Date('2022-07-27T02:00:00');
const dateToString = jsDateToString(someDate);

console.log(dateToString); // expected result => 30m
```

---
_Source: https://npm.io/package/js-date-to-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
