stardate-converter
Version:
Converts common date to Star Trek stardate
28 lines (17 loc) • 746 B
Markdown
# Stardate Converter · HovpoH MughwI' [](https://npmjs.com/package/stardate-converter) [](https://travis-ci.org/zeroturnaround/stardate-converter)
**Stardate Converter (HovpoH MughwI')** is a JavaScript library for converting common date to Star Trek stardate (Hov Trek hovpoh).
## Install · Jom
```
npm install stardate-converter --save
```
## Usage
```js
import stardate from "stardate-converter";
console.log(stardate(new Date(2017, 9, 24)));
```
Output:
```
-305189.04
```
## License · Chaw'
[MIT](https://github.com/zeroturnaround/stardate-converter/blob/master/LICENSE)