summaryrefslogtreecommitdiff
path: root/examples/urls_from_file.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/urls_from_file.js')
-rw-r--r--examples/urls_from_file.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/urls_from_file.js b/examples/urls_from_file.js
new file mode 100644
index 0000000..0231032
--- /dev/null
+++ b/examples/urls_from_file.js
@@ -0,0 +1,11 @@
+import urls from "./urls.txt"
+
+export const config = {
+ urls: urls.split("\n").filter(Boolean)
+};
+
+export default function({ doc }) {
+ return {
+ title: doc.find("title").text().trim(),
+ };
+}