# samprati

> returns current time

Latest version **0.0.1** (published 2016-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install samprati
pnpm add samprati
yarn add samprati
bun add samprati
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-09-21 |
| First published | 2016-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrey Ringbauer |
| Maintainers | aring |
| Keywords | date, time, string, convert |

## Links

- npm: https://www.npmjs.com/package/samprati
- Repository: https://github.com/arings/samprati
- Homepage: https://github.com/arings/samprati#readme
- Issues: https://github.com/arings/samprati/issues
- npm.io page: https://npm.io/package/samprati

## 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

- 0.0.1 (latest) — 2016-09-21

## README

# samprati

###### Sane Module Praising Time; सम्प्रति  == now

Just returning current date/time in human readable format.

## Motivation

Simple. When one need just current time for logs, posts, edits or updates, with simple formatting options.

## Installation

`npm install samprati`

## Usage

```
var showTime = require('samprati')
console.log(showTime())
```

Default output will be current date in [ISO 8601](http://imgs.xkcd.com/comics/iso_8601.png) format and time in extended format. Everything is zero-padded and simple as brick:

`2016-09-21 19:26:06.277`

With optional string parameter:

```
var showTime = require('samprati')
console.log(showTime('${yy}${MM}${dd}${hh}${mm}${ss}.${ms}'))
```

`20160921192606.277`

Some blog post string:

```
console.log('Date: ${dd}/${MM}/${yy} time: ${hh}:${mm}')
```

`Date: 21/09/2016 time: 19:26`

## Tests

`npm test`

## Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

## License

MIT

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