@@ -25,11 +25,11 @@ blog posts, notes, and images).
2525
2626Just using either RSS or Atom is probably fine: no need to do both.
2727
28- Note that this package is ESM only: Node 12+ is required to use it and it must
29- be imported instead of required.
30-
3128## Install
3229
30+ This package is [ ESM only] ( https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c ) :
31+ Node 12+ is needed to use it and it must be ` import ` ed instead of ` require ` d.
32+
3333[ npm] [ ] :
3434
3535``` sh
@@ -38,7 +38,7 @@ npm install xast-util-feed
3838
3939## Use
4040
41- Say we have the following module, ` example.mjs `
41+ Say we have the following module, ` example.js `
4242
4343``` js
4444import {atom , rss } from ' xast-util-feed'
@@ -68,7 +68,7 @@ console.log(toXml(rss(channel, data)))
6868console .log (toXml (atom (channel, data)))
6969```
7070
71- Now, running ` node example.mjs ` yields (pretty printed):
71+ Now, running ` node example.js ` yields (pretty printed):
7272
7373``` xml
7474<?xml version =" 1.0" encoding =" utf-8" ?>
@@ -131,6 +131,9 @@ Now, running `node example.mjs` yields (pretty printed):
131131
132132## API
133133
134+ This package exports the following identifiers: ` atom ` , ` rss ` .
135+ There is no default export.
136+
134137### ` rss(channel, data) `
135138
136139Build an RSS feed.
0 commit comments