Using jargon

Jargon are terms that could throw off new users. Rather than create a glossary on every page, we use a plugin to manage jargon terms for us. This page shows you how to use it.

TIP|

Think of jargon as glossary terms

Using jargon

To use jargon, it’s sufficient to emphasize the term:

md
We are migrating from _cjs_ to _esm_ modules

Which renders as:

We are migrating from cjs to esm modules

Adding jargon

To add a new jargon term, you need to add it to the jargon file for the website you’d like to add it to:

WebsiteJargon fileGitHub link
freesewing.devsites/dev/jargon.mjsjargon.mjs
freesewing.orgsites/org/jargon.mjsjargon.mjs

The file consists of key/value pairs where:

  • The key is the jargon term
  • The value is the jargon description

Tips for jargon keys

The key in the jargon file should always be lowercase. That’s because we lowercase the term before matching it.

So in your text, you can use ESM, esm, or even eSm, but the key in the jargon file should be esm.

Tips for jargon values

The value can hold HTML tags, just make sure it’s valid HTML and don’t go overboard.

Note that the definition will be italic by default.

FreeSewing Jargon Glossary

Below is the jargon which is currently defined and available to use on our websites.

Jargon on freesewing.dev

TermDescription
cjsCJS stands for CommonJS, it is the JavaScript module format popularized by NodeJS, but now increasingly phased out in favor of ESM
esmESM stands for EcmaScript Module, it is the standardized module syntax in JavaScript

Jargon on freesewing.org

TermDescription

(Currently, no jargon has been defined for the freesewing.org site.)