Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/timgabets/atm-timestamp

atm-timestamp npm module
https://github.com/timgabets/atm-timestamp

Last synced: about 2 months ago
JSON representation

atm-timestamp npm module

Awesome Lists containing this project

README

        

# atm-timestamp

A timestamp service used by [Electron ATM](https://github.com/timgabets/electron-atm) and [ATM State Navigator](https://github.com/timgabets/states-navigator) applications. The get() method of the service returns current time string in HH:MM:ss.mmm format (e.g. '14:52:50.007'), which may be used in traces, logs etc.

## Install
```bash
npm install atm-timestamp
```

## To Use:

```javascript
> var Timestamp = require('atm-timestamp');
> var t = new Timestamp();
> t.get()
'14:52:01.548'
> t.get()
'14:52:50.007'
```