https://github.com/microtribute/elm-package-crawler
https://github.com/microtribute/elm-package-crawler
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/microtribute/elm-package-crawler
- Owner: Microtribute
- Created: 2023-09-29T16:41:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T14:05:48.000Z (almost 3 years ago)
- Last Synced: 2023-10-07T21:36:05.578Z (almost 3 years ago)
- Language: Java
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elm Packages
- [Elm Packages](https://package.elm-lang.org/)
- [Elm Packages Source Code](https://github.com/elm/package.elm-lang.org/)
## Extracting All Elm Packages
Run the following script on `https://package.elm-lang.org`.
```javascript
$$('.pkg-summary').map(m => ({
name: m.querySelector('h1 > a').innerText,
link: m.querySelector('h1 > a').getAttribute('href'),
desc: m.querySelector('.pkg-summary-desc').innerHTML,
version: m.querySelector('.pkg-summary-hints').lastChild.innerText,
}))
```
## Generate `all-packages.json` file
```sh
$ deno run --allow-write packages.ts
```