§ Quick Take

It's an opinionated npm libraries maintenance CLI app.

Before we migrated README's to codsen.com, it used to replace README's chapters, suitable for automation: installation instructions, badges and so on.

Since the migration, Nunjucks on Eleventy does the job, lect only generates placeholder README's and all auxiliary files:

  • rollup.config.json
  • .prettierignore
  • .npmignore
  • .npmrc
  • LICENCE

The babel.config.js sits in a monorepo root so it doesn't need managing — there's only one file anyway. Same with .prettierrc and .gitignore.

§ Licence

MIT opens in a new tab

Copyright © 2010–2020 Roy Revelt and other contributors

Related articles:

ARTICLE  
Our Dark Mode Setup

Our Dark Mode Setup

Conceptually, dark/light mode on a website is driven by the buttons on the UI: whichever mode user picks, a data-theme attribute with that value gets set on <html> tag. We also persist that to browser's local storage.

Automatic mode setting "listens" to system's setting via @media (prefers-color-scheme: dark). Manual dark/light modes' CSS "listens" to <html> tag attribute's value by :root[data-theme='dark'].

That's pretty much it.

Here is the mixin we use.

Read article Our Dark Mode Setup

Related packages:

📦 array-of-arrays-sort-by-col 2.12.14
sort array of arrays by column, rippling the sorting outwards from that column
📦 array-of-arrays-into-ast 1.9.51
turns an array of arrays of data into a nested tree of plain objects
📦 array-group-str-omit-num-char 2.1.48
Groups array of strings by omitting number characters
📦 arrayiffy-if-string 3.11.38
Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else
📦 all-named-html-entities 1.3.7
List of all named HTML entities
📦 array-pull-all-with-glob 4.12.72
pullAllWithGlob - like _.pullAll but pulling stronger, with globs
📦 array-includes-with-glob 2.12.42
like _.includes but with wildcards