-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove minified bundle / add jsr to readme
- Loading branch information
Showing
11 changed files
with
27 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,10 @@ Fetch and parse XML documents using the power of JavaScript web streams and asyn | |
|
||
See the `examples` directory for platform specific examples. | ||
|
||
```javascript | ||
import {parse} from "jsr:@dbushell/[email protected]"; | ||
``` | ||
|
||
The `parse` generator function is the main export. Below is a basic example that logs RSS item titles as they're found: | ||
|
||
```javascript | ||
|
@@ -51,6 +55,20 @@ Browsers may need a [polyfill](https://bugs.chromium.org/p/chromium/issues/detai | |
|
||
‡ Bun has issues ([#2489](https://github.com/oven-sh/bun/issues/2489)) | ||
|
||
## NPM | ||
|
||
Add the [JavaScript Registry](https://jsr.io/) to `.npmrc`: | ||
|
||
``` | ||
@jsr:registry=https://npm.jsr.io | ||
``` | ||
|
||
Install the package: | ||
|
||
```sh | ||
npm install @jsr/dbushell__xml-streamify | ||
``` | ||
|
||
* * * | ||
|
||
[MIT License](/LICENSE) | Copyright © 2023 [David Bushell](https://dbushell.com) | ||
[MIT License](/LICENSE) | Copyright © 2024 [David Bushell](https://dbushell.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/* | ||
!.gitignore | ||
!advanced | ||
!*.ts | ||
!*.mjs | ||
advanced/**.* | ||
!**/*.ts | ||
!**/*.mjs |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env -S deno run --allow-net | ||
|
||
import {parse, Node} from '../mod.ts'; | ||
import {parse, Node} from 'jsr:@dbushell/[email protected]'; | ||
|
||
const blog = async () => { | ||
const parser = parse('https://dbushell.com/rss.xml'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.