Skip to content

Commit

Permalink
Require Node.js 12.20 and move to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 8, 2021
1 parent d11b4f6 commit 47aac78
Show file tree
Hide file tree
Showing 10 changed files with 462 additions and 385 deletions.
4 changes: 0 additions & 4 deletions .github/funding.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
- 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
3 changes: 1 addition & 2 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';
const captureWebsite = require('.');
import captureWebsite from './index.js';

// Run this file with `$ node example.js`

Expand Down
Loading

0 comments on commit 47aac78

Please sign in to comment.