Skip to content

Commit 99f2305

Browse files
authored
Merge pull request #10 from cdeil/patch-1
Update README.md
2 parents 3e5fab9 + 3923a88 commit 99f2305

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ If you are using [Node.js](https://nodejs.org/), you can download and install [@
2121
npm install --save @hscmap/healpix
2222
```
2323

24-
Then from your Javascript (JS) or Typescript (TS) file, import and use `healpix` like this:
24+
Then from your Javascript (JS) you can require and use `healpix` like this:
2525
```js
26-
// in JavaScript
27-
const healpix = require('healpix');
26+
const healpix = require('@hscmap/healpix');
2827
console.log(healpix.order2nside(0));
2928
```
3029

30+
From Typescript import and use it like this:
3131
```typescript
32-
// in TypeScript
33-
import * as healpix from 'healpix';
32+
import * as healpix from '@hscmap/healpix';
3433
console.log(healpix.order2nside(0));
3534
```
3635

@@ -48,7 +47,7 @@ and after that line you can call `healpix` functions like this:
4847
console.log(healpix.order2nside(0));
4948
</script>
5049
```
51-
If you don't want to use the latest version, select one from [here](https://unpkg.com/@hscmap/healpix).
50+
If you don't want to use the latest version, select one from [here](https://unpkg.com/@hscmap/healpix/).
5251

5352
## Examples
5453

0 commit comments

Comments
 (0)