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

@scope42/structured-aim42

v1.1.0

Published

A structured version of the aim42 Method Reference

Downloads

33

Readme

structured-aim42

Build Up to date? npm semantic-release

This is a structured version of the aim42 Method Reference. It takes the original AsciiDoc sources and extracts the structural information from them. This yields a tree of sections enriched with meta-data. The leaf nodes are available as rendered HTML.

This library makes it convenient to re-distribute aim42 content (see LICENSE) programatically. It is kept is sync with the original repository.

Usage

Install using your preferred package manager. Example:

npm install @scope42/structured-aim42

Import the aim42 document object and use it to explore the structure of the Method Reference. Example:

import { aim42 } from '@scope42/structured-aim42'

console.log("Top-Level Sections:")

for (const child of aim42.children) {
  if (child.type === "section") {
    console.log(`- ${child.titlePlain}`);
  }
}

Open in CodeSandbox

structured-aim42 comes with native TypeScript support. For usage with plain JS, use src/types.ts as documentation for exported data structures.

Tree Shaking

This library is very large because it cotains the whole content of the Method Reference multiple times. Make sure to use a build setup that enables tree shaking.

Each section is available as a module. This way, you can very precisely import what you need. Example:

import { howDoesAim42Work } from '@scope42/structured-aim42/lib/introduction/how-does-aim42-work'

Additionally, there is an atomic content module for each section. Use this if you need the whole HTML content of a specific section instead of the inner structure. Example:

import { howDoesAim42WorkAtomic } from '@scope42/structured-aim42/lib/introduction/how-does-aim42-work/atomic'

Resources

Images and CSS provided in the resources directory of the packge so you can serve them in a privacy-friendly way. To do this, you usually need to copy them from node_modules/@scope42/structured-aim42/resources to your application. Note that you may need to modify the image src attributes of the HTML exported by this library to make it work.

Also note that the CSS file, provided as is, contains an externally loaded Google font which you may want to remove for privacy reasons.

License

structured-aim42 is published under the Creative Commons Attributions Sharealike 4.0 license.

This project distributes content from the aim42 Method Reference by Gernot Starke and community contributors, used under CC BY-SA.

Attribution to this project is appreciated but not required. In any case, attribute the original authors.