# 阳历时间转阴历时间

## Installation
### NPM

JavaScript get-lunar supports [npm](https://www.npmjs.com/package/get-lunar) under the name `get-lunar`.

```
$ npm i get-lunar
```

### Example for how to load the ES module in a browser:

```html
<script type="module" src="./interchange.js"></script>
<script type="module">
    var date = getLunar("2050-10-11 10:15:23");
    console.log(date);  //农历八月廿六
</script>
```
```JavaScript
import {getLunar} from 'get-lunar'
export default {
    name: 'test',
    mounted() {
        var date = getLunar("2050-10-11 10:15:23");
        console.log(date);  //农历八月廿六
    },
}
```