turf/examples/es-modules/index.html
mfedderly 2e9d3d51f7
Add Prettier and ESLint to the builds (#1965)
* Configure ESlint and Prettier
- Disable all eslint rules that trigger
- Build's lint step now runs monorepoint, prettier, and eslint
- Remove all tslint references

* [auto] run prettier on everything

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2020-12-08 19:24:15 -05:00

16 lines
347 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ES Modules</title>
</head>
<body>
<script type="module">
import { point, greatCircle } from "https://unpkg.com/@turf/turf?module";
console.log(greatCircle([0, 0], [100, 10]));
console.log(point([100, 0]));
</script>
</body>
</html>