npm install @zhousuyang/lonlat-convert
import { bd2gcj, gcj2bd, wgs2gcj, gcj2wgs } from '@zhousuyang/lonlat-convert';
const { bd2gcj, gcj2bd, wgs2gcj, gcj2wgs } = require('@zhousuyang/lonlat-convert');
<script src="./node_modules/@zhousuyang/lonlat-convert/dist/bundle.umd.js"></script>
<script>
const { bd2gcj, gcj2bd, wgs2gcj, gcj2wgs } = window.lonLat
</script>