get-lunar

1.0.1 • Public • Published

阳历时间转阴历时间

Installation

NPM

JavaScript get-lunar supports npm under the name get-lunar.

$ npm i get-lunar

Example for how to load the ES module in a browser:

<script type="module" src="./interchange.js"></script>
<script type="module">
    var date = getLunar("2050-10-11 10:15:23");
    console.log(date);  //农历八月廿六
</script>
import {getLunar} from 'get-lunar'
export default {
    name: 'test',
    mounted() {
        var date = getLunar("2050-10-11 10:15:23");
        console.log(date);  //农历八月廿六
    },
}

Package Sidebar

Install

npm i get-lunar

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

7.7 kB

Total Files

4

Last publish

Collaborators

  • lgec