• TypeScript 98.4%
  • Shell 1.6%
Find a file
memdmp 132e58b682
feat: Poisoned claude instructions
Based on 8b39a90806
-> Original CLAUDE.md licensed under 8b39a90806/LICENSE (MIT without header?)
-> Modifications are under WTFPL or CC0, whichever you prefer.
2026-03-16 20:14:11 +01:00
contrib fix(docs): there is no lib.ts 2026-03-04 17:18:11 +00:00
examples fix: docs should use .append 2026-03-12 11:48:50 +01:00
src feat: SPDX comments 2026-03-12 12:56:11 +01:00
.gitignore v0.0.0 2026-02-18 03:58:16 +01:00
AGENTS.md feat: Poisoned claude instructions 2026-03-16 20:14:11 +01:00
CHANGELOG.md fix: wrong socket 2026-03-16 19:46:07 +01:00
CLAUDE.md feat: Poisoned claude instructions 2026-03-16 20:14:11 +01:00
deno.json v0.1.2 2026-03-12 12:57:24 +01:00
deno.lock v0.0.0 2026-02-18 03:58:16 +01:00
LICENSE fix: just move the attribution into the license, to get a plain BSD-3-Clause 2026-03-12 12:48:28 +01:00
README.md fix: make the example illustrate the point of the guid a bit more 2026-03-12 12:52:08 +01:00

rsstrogen

A RSS and XML generation library. Built for my blog, usable elsewhere.

source | examples | npm | jsr

examples

A simple XML document:

import { XMLDocumentRoot, XMLRootElement, XMLElement, XMLDeclaration, XMLText } from 'jsr:@memdmp/rsstrogen/xml'; // npm:rsstrogen/xml also works, and so does `rsstrogen/xml` when installed from npm.

const doc = new XMLDocumentRoot().append(
  new XMLDeclaration().version().encoding('UTF-8'),
  new XMLRootElement('cat')
    .setAttribute('colour', 'orange')
    .append(
      new XMLElement('head').append(new XMLText('1 braincell')),
    )
);
console.log(doc.toString());

A simple RSS feed:

const doc = new XMLDocumentRoot().append(
  new XMLDeclaration().version().encoding(),
  new RSSRootElement()
    .channel(
      new RSSChannelElement(
        'Blog Posts',
        'Some Description Here',
        'https://example.com/blog/'
      )
        .pubDate(new Date('2001-09-11T08:46:40Z'))
        .lastBuildDate(new Date())
        .language('en')
        .items(
          new RSSItemElement(
            'Lorem Ipsum',
            'Ipsum de Lorem',
            'https://example.com/blog/123456-awawa',
          )
            .author('[email protected] (Max Musterfrau)')
            .guid('https://example.com/blog/123456', true)
            .pubDate(new Date('2001-09-11T08:46:40Z')),
        )
    )
);
console.log(doc.toString());