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

eda-curator

v0.0.9

Published

tool for building curriculum

Downloads

53

Readme

Stories in Ready ##curator

npm install -g eda-curator

Tool for building language specific curriculum readme files for challenge repos.

The curator can initialize a directory with given languages, say ruby and c#; this will produce a _templates directory with one template.md file, an rb directory and a cs directory:

name_of_directory/_templates/rb/

name_of_directory/_templates/cs/

name_of_directory/_templates/template.md

Inside each of the language directories you can put any language specific files, it gets initialized with a default file selection of code.md,links.md and text.md:

name_of_directory/_templates/rb/code.md

name_of_directory/_templates/rb/links.md

name_of_directory/_templates/rb/text.md

If you have a challenge that needs two separate examples of code, one for ruby and one for c#, put the code you want for each inside the name_of_directory/_templates/rb/code.md and name_of_directory/_templates/cs/code.md.

Next up in the template.md put the language agnostic information, e.g the challenge name and it's brief.

To include the language specific code that you put into the code.md files just put include:code: on the next line. When you build curator with rb and c# it will scan the template file for include:*:, create a readme-rb.md and a readme-cs.md and then replace include:code: with the contents of the name_of_directory/_templates/rb/code.md file and copy that into the readme-rb.md file and the same for c# into the readme-cs.md.

Any include:*: in the template.md file will be replaced with the corresponding *.md file from the language directory. If you have multiple code examples or language specific text for the challenge then just create a file for each one in the language directory and put include:< file name >: in the template.md file.

Note: if you have include:code_one: and include:code_two: and one of the languages only has code_one.md, don't worry it will just replace include:code_two: with a blank :)

##init

curator init < language name >

  • run from the root directory of a repo

  • initializes the current directory with the given languages

curator init rb cs js
  • to get current available language options run curator languages

  • creates a _template folder in current directory, with sub folders for each language, each with code, text and links files. template.md is also created for the language agnostic readme content

curator init -A
  • initializes ruby and c#

##build

curator build < language name >

  • run from the root directory of a repo

  • build the readmes for the given languages

curator build rb cs js
  • to get current available language options run curator languages

  • creates a readme-rb.md file, a readme-cs.md file and a readme-js.md file with their language specific content scraped from the relevant language directory. Also creates a README.md file with links to the language specific readmes.

  • warning be careful not to run curator build straight after curator init or before you have inserted the correct data into the template.md and relevant language directories and files; it will override the existing readme with links to the individual readmes.

curator build -A
  • builds ruby and c#