Skip to content

Commit be846b9

Browse files
committed
chore: scrape
2 parents 10749b3 + ac99237 commit be846b9

9 files changed

Lines changed: 279 additions & 35 deletions

File tree

‎LICENSE‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
MIT License
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

‎README.md‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nsis-data
1+
# @nsis/release-data
22

33
Canonical dataset of NSIS releases — versions, download URLs, file sizes and SHA1/SHA256/SHA512 hashes for the Windows ZIP and source tarball of every release.
44

@@ -7,11 +7,21 @@ Canonical dataset of NSIS releases — versions, download URLs, file sizes and S
77
Once published, the dataset is available at:
88

99
```
10-
https://nsis-dev.github.io/data/versions.json
10+
https://nsis-dev.github.io/release-data/versions.json
1111
```
1212

13-
The file conforms to [`schema/versions.schema.json`](./schema/versions.schema.json).
13+
The file conforms to [`versions.schema.json`](https://nsis-dev.github.io/release-data/versions.schema.json).
14+
15+
## Import
16+
17+
```ts
18+
import versions from '@nsis/release-data/versions.json' with { type: 'json' };
19+
```
1420

1521
## License
1622

23+
<<<<<<< HEAD
1724
[CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/)
25+
=======
26+
This work is licensed under the MIT License.
27+
>>>>>>> ac9923734529d463c70cbee2a6d7d6aaea69e8ef

‎data/versions.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
2+
<<<<<<< HEAD
23
"$schema": "https://nsis-dev.github.io/data/versions.schema.json",
34
"generatedAt": "2026-10-01T18:28:59.176Z",
5+
=======
6+
"$schema": "https://nsis-dev.github.io/release-data/versions.schema.json",
7+
"generatedAt": "2026-04-30T21:10:21.173Z",
8+
>>>>>>> ac9923734529d463c70cbee2a6d7d6aaea69e8ef
49
"source": "sourceforge.net/projects/nsis",
510
"versions": {
611
"2.08": {

‎docs/index.html‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>nsis-data</title>
5+
<title>@nsis/release-data</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<style>
88
:root { color-scheme: light dark; }
@@ -26,7 +26,7 @@
2626
</style>
2727
</head>
2828
<body>
29-
<h1>nsis-data</h1>
29+
<h1>@nsis/release-data</h1>
3030
<p class="lede">Canonical dataset of NSIS releases.</p>
3131

3232
<h2>Endpoints</h2>
@@ -35,19 +35,22 @@ <h2>Endpoints</h2>
3535
<li><a href="versions.schema.json">versions.schema.json</a> — JSON Schema</li>
3636
</ul>
3737

38+
<<<<<<< HEAD
3839
<h2>Usage</h2>
3940
<pre><code>const res = await fetch('https://nsis-dev.github.io/data/versions.json');
4041
const dataset = await res.json();
4142
const entry = dataset.versions['3.12'];</code></pre>
4243

44+
=======
45+
>>>>>>> ac9923734529d463c70cbee2a6d7d6aaea69e8ef
4346
<h2>Source</h2>
4447
<p>
45-
<a href="https://github.com/NSIS-Dev/data">github.com/NSIS-Dev/data</a>
48+
<a href="https://github.com/NSIS-Dev/release-data">github.com/NSIS-Dev/release-data</a>
4649
</p>
4750

4851
<footer>
4952
Updated daily via the
50-
<a href="https://github.com/NSIS-Dev/data/actions/workflows/update.yml">update workflow</a>.
53+
<a href="https://github.com/NSIS-Dev/release-data/actions/workflows/update.yml">update workflow</a>.
5154
</footer>
5255
</body>
5356
</html>

‎package.json‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
11
{
2-
"name": "@nsis/data",
3-
"version": "0.0.0",
2+
"name": "@nsis/release-data",
3+
"version": "0.1.0",
44
"description": "Canonical dataset of NSIS releases — versions, download URLs and hashes — consumed by scoop-nsis, homebrew-makensis and friends.",
5-
"private": true,
65
"author": "Jan T. Sott",
76
"license": "CC0-1.0",
87
"type": "module",
98
"engines": {
109
"node": ">=24"
1110
},
11+
"exports": {
12+
"./versions.json": "./data/versions.json"
13+
},
14+
"files": [
15+
"data"
16+
],
1217
"scripts": {
1318
"scrape": "node src/scrape.ts",
1419
"validate": "node src/validate.ts",
1520
"typecheck": "tsc --noEmit"
1621
},
1722
"repository": {
1823
"type": "git",
19-
"url": "git+https://github.com/NSIS-Dev/data.git"
24+
"url": "git+https://github.com/NSIS-Dev/release-data.git"
2025
},
2126
"dependencies": {
2227
"ajv": "^8.17.1",
2328
"ajv-formats": "^3.0.1"
2429
},
2530
"devDependencies": {
26-
"@types/node": "^24.12.2",
27-
"typescript": "^5.9.3"
31+
"@types/node": "^26.1.1",
32+
"typescript": "^7.0.2"
2833
},
2934
"packageManager": "pnpm@10.33.2+sha512.a90faf6feeab71ad6c6e57f94e0fe1a12f5dcc22cd754db40ae9593eb6a3e0b6b12e3540218bb37ae083404b1f2ce6db2a4121e979829b4aff94b99f49da1cf8"
3035
}

0 commit comments

Comments
 (0)