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

myst-ext-lorem

v1.0.1

Published

A Lorem Ispum directive for MyST Markdown by Curvenote

Downloads

25

Readme

Lorem Ipsum for MyST Markdown

In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. -- Wikipedia

Adding this plugin to your MyST Markdown project will add a new lorem directive.

The following directive...

:::{lorem} 3
:::

...will add 3 paragraphs of Lorem Ipsum text to the page, somehting like this:

Setup and Usage

This package is published on npm, to install the plugin in your MyST project:

  1. Download the javascript module (lorem.mjs) from https://unpkg.com/[email protected]/dist/lorem.mjs and save this in your project folder
  2. Add the module to the list of plugins in myst.yml:
project:
  plugins:
    - lorem.mjs

The plugin will be loaded when you next run myst start

myst start

🔌 Lorem Ipsum (lorem.mjs) loaded: 1 directive, 0 roles, 0 transforms
📖 Built example.md in 4.68 ms.
📚 Built 1 page for project in 30 ms.


        ✨✨✨  Starting Article Theme  ✨✨✨



🔌 Server started on port 3001!  🥳 🎉


        👉  http://localhost:3001  👈

Then add lorem or lipsum directives to your page where ever you need them.

:::{lorem} 4
:::

The directive takes a single argument which controls the number of paragraphs to add.

[!TIP] MyST Markdown's plugin loading system is still developing, look out for updates on easier ways to access and load plugins.

Developing

This repo builds the plugin and it's dependencies into a singel javascript module bundle using tusp.

  1. clone this repo
  2. cd myst-ext-lorem
  3. npm install
  4. npm build
> [email protected] build
> tsup

CLI Building entry: src/lorem.ts
CLI Using tsconfig: tsconfig.json
CLI tsup v8.1.0
CLI Using tsup config: /Users/stevejpurves/dev/myst-ext/myst-ext-lorem/tsup.config.ts
CLI Target: esnext
CLI Cleaning output folder
ESM Build start
ESM dist/lorem.mjs     22.57 KB
ESM dist/lorem.mjs.map 23.16 KB
ESM ⚡️ Build success in 12ms
DTS Build start
DTS ⚡️ Build success in 456ms
DTS dist/lorem.d.ts 452.00 B

Contributing

This plugin uses the lorem-ipsum package by @knicklabs which exposes many options, if you think some of these will be useful for Lorem Ipsum in MyST documents, issues and PRs to expose those are welcome!