Skip to content

Commit 348759f

Browse files
committed
Adding missing parse-rss package deps, and new parse-url block.
1 parent 307ed25 commit 348759f

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

blocks/parse-rss/package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blocks/parse-rss/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "parse-rss",
33
"version": "0.0.1",
44
"dependencies": {
5-
"feedparser-promised": "^2.0.1"
5+
"feedparser-promised": "^2.0.1",
6+
"node-webpipe": "0.0.3"
67
}
78
}

blocks/parse-url/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const url = require('url')
2+
const { Block } = require('node-webpipe')
3+
4+
new Block()
5+
.name('Parse URL')
6+
.description('Parse URL using WHATWG URL Standard.')
7+
.input('url', 'string', 'A url to parse.')
8+
.output('parts', 'objects', 'Returns the parsed URL parts.')
9+
.handle((inputs, cb) => {
10+
cb(null, { parts: url.parse(inputs.url) })
11+
})
12+
.listen()

0 commit comments

Comments
 (0)