Skip to content

Commit 7ccde21

Browse files
committed
modernize, ESM entry point
1 parent 6bc2757 commit 7ccde21

File tree

9 files changed

+913
-2089
lines changed

9 files changed

+913
-2089
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,7 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
16-
- name: Setup Node
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: 14.x
20-
21-
- name: Install dependencies
22-
run: npm ci
23-
24-
- name: Run tests
25-
run: npm test
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
- run: npm ci
16+
- run: npm test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014, Vladimir Agafonkin
1+
Copyright (c) 2025, Vladimir Agafonkin
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
SunCalc
33
=======
44

5-
[![Build Status](https://travis-ci.org/mourner/suncalc.svg?branch=master)](https://travis-ci.org/mourner/suncalc)
6-
75
SunCalc is a tiny BSD-licensed JavaScript library for calculating sun position,
86
sunlight phases (times for sunrise, sunset, dusk, etc.),
97
moon position and lunar phase for the given location and time,
@@ -40,7 +38,7 @@ $ npm install suncalc
4038
```
4139

4240
```js
43-
var SunCalc = require('suncalc');
41+
import * as SunCalc from 'suncalc';
4442
```
4543

4644

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {default} from 'eslint-config-mourner';

0 commit comments

Comments
 (0)