npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rimu

v11.4.0

Published

Readable text to HTML markup language

Downloads

132

Readme

Rimu Markup

Rimu is a readable-text to HTML markup language inspired by AsciiDoc and Markdown.

At its core Rimu is a simple readable-text markup similar in scope to Markdown, but with two additional areas of functionality (both built into the Rimu markup syntax):

  • Markup generation can be customized and extended.
  • Rimu includes a simple, flexible macro language.
  • A subset of Rimu syntax is Markdown compatible.
  • The generated HTML is compatible with all modern browsers.
  • A number of Rimu implementations are available for various languages and runtime environments.

Learn more

Read the documentation and experiment with Rimu in the Rimu Playground or open the rimuplayground.html file locally in your browser.

See the Rimu Change Log for the latest changes.

NOTE: The remainder of this document is specific to the TypeScript implementation for Node.js, Deno and browser platforms.

Quick start

Try the Rimu library in the npm Runkit page:

  1. Open the Rimu npm Runkit page in your browser.
  2. Paste in this code then press the Run button.
const rimu = require("rimu")
const html = rimu.render('Hello *Rimu*!')

This will output "<p>Hello <em>Rimu</em>!</p>".

Installing and using Rimu

Node.js

Use npm to install the Node.js Rimu library module and the rimuc CLI:

npm install -g rimu

Run a test from the command prompt to check the rimuc CLI command is working:

echo 'Hello *Rimu*!' | rimuc

This should print:

<p>Hello <em>Rimu</em>!</p>

Deno

Deno modules don't need explicit installation just import the module URL, for example:

import * as rimu from "https://deno.land/x/[email protected]/mod.ts";

console.log(rimu.render("Hello *Rimu*!"));

Use the Deno install command to install the Rimu CLI executable. The following example creates the CLI executable named rimudeno in $HOME/.deno/bin/rimudeno:

deno install -A --name rimudeno https://deno.land/x/[email protected]/src/deno/rimuc.ts

Browser

Rimu builds JavaScript ES module files in the ./lib/esm directory along with a bundled version ./lib/esm/rimu.min.js. The rimu.min.js ES module file was bundled by Rollup and minimized with terser. Example usage:

<script type="module">
    import * as rimu from "./rimu.min.js";
    alert(rimu.render("Hello *Rimu*!"));
</script>

Building Rimu and the Rimu documentation

To build Rimu you need to have Deno and Node.js installed.

  1. Install the Git repository from Github.

     git clone https://github.com/srackham/rimu.git
  2. Install dependencies:

     cd rimu
     npm install
     deno cache --reload src/deno/rimuc.ts
  3. Use the Drake task runner module to build and test Rimu library modules and CLIs for Deno and Node.js platforms:

     deno run -A Drakefile.ts build test