Skip to content

Commit 2b0fefc

Browse files
committed
add npm package
1 parent 015d165 commit 2b0fefc

File tree

6 files changed

+67
-10
lines changed

6 files changed

+67
-10
lines changed

.github/workflows/jsr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: Publish JSR
22
on:
33
push:
44
branches:

.github/workflows/npm.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish NPM
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: '22.x'
21+
registry-url: 'https://registry.npmjs.org'
22+
- run: npm publish --provenance --access public
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
/*
2-
!.gitignore
2+
/*.*
33
!.github
4+
!.gitignore
45
!deno.json
6+
!package.json
57
!README.md
68
!LICENSE
7-
!examples
9+
!mod.ts
810
!src
9-
src/**/*.*
1011
!src/**/*.ts
12+
!examples

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
Fetch and parse XML documents using the power of JavaScript web streams and async iterators ✨
44

5-
[![JSR](https://jsr.io/badges/@dbushell/xml-streamify?labelColor=98e6c8)](https://jsr.io/@dbushell/xml-streamify) [![JSR Score](https://jsr.io/badges/@dbushell/xml-streamify/score?labelColor=98e6c8)](https://jsr.io/@dbushell/xml-streamify) [![JSR](https://jsr.io/badges/@dbushell?labelColor=98e6c8)](https://jsr.io/@dbushell)
5+
[![JSR](https://jsr.io/badges/@dbushell/xml-streamify?labelColor=98e6c8&color=333)](https://jsr.io/@dbushell/xml-streamify) [![NPM](https://img.shields.io/npm/v/xml-streamify?labelColor=98e6c8&color=333)](https://www.npmjs.com/package/xml-streamify)
66

77
* Small, fast, zero dependencies †
88
* Work with data before the fetch is complete
9-
* Cross-runtime support (Bun, Deno, Node, and web browsers)
9+
* Cross-runtime support (Bun, Deno, Node, and web browsers)
1010

1111
**This is experimental work in progress.** But it does seem to work. It was designed to parse RSS feeds.
1212

@@ -51,8 +51,6 @@ Browsers may need a [polyfill](https://bugs.chromium.org/p/chromium/issues/detai
5151

5252
† bring your own HTML entities decoder
5353

54-
‡ Bun has issues ([#2489](https://github.com/oven-sh/bun/issues/2489), [#4](https://github.com/dbushell/xml-streamify/issues/4))
55-
5654
* * *
5755

5856
[MIT License](/LICENSE) | Copyright © 2024 [David Bushell](https://dbushell.com)

deno.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dbushell/xml-streamify",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"exports": {
55
".": "./mod.ts",
66
"./node": "./src/node.ts",
@@ -9,7 +9,10 @@
99
"./types": "./src/types.ts"
1010
},
1111
"publish": {
12-
"include": ["src", "deno.json", "mod.ts", "LICENSE", "README.md"],
12+
"include": ["src", "mod.ts", "deno.json", "LICENSE", "README.md"],
1313
"exclude": [".github", "examples"]
14+
},
15+
"lint": {
16+
"include": ["**/*.ts"]
1417
}
1518
}

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "xml-streamify",
3+
"version": "0.6.1",
4+
"repository": {
5+
"type": "git",
6+
"url": "git+https://github.com/dbushell/xml-streamify.git"
7+
},
8+
"description": "Fetch and parse XML documents using the power of JavaScript web streams and async iterators ✨",
9+
"keywords": [
10+
"xml",
11+
"typescript"
12+
],
13+
"license": "MIT",
14+
"type": "module",
15+
"exports": {
16+
".": "./mod.ts",
17+
"./node": "./src/node.ts",
18+
"./parse": "./src/parse.ts",
19+
"./stream": "./src/stream.ts",
20+
"./types": "./src/types.ts"
21+
},
22+
"types": "src/types.ts",
23+
"files": [
24+
"src",
25+
"mod.ts",
26+
"package.json",
27+
"LICENSE",
28+
"README.md"
29+
]
30+
}

0 commit comments

Comments
 (0)