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

zsh-any-node

v1.0.0

Published

Generates table of contents for markdown files inside local git repository. Links are compatible with anchors generated by github or other sites.

Downloads

3

Readme

any-node Zsh package

NPM link: https://www.npmjs.com/package/zsh-any-node

| Package source: | Source Tarball | Binary | Git | Node | Gem | |:-------------------:|:--------------:|:------:|:---:|:----:|:---:| | Status: | - | - | - | + (default) | – |

Introduction

Zplugin can use the NPM package registry to automatically:

  • get the plugin's Git repository OR release-package URL,
  • get the list of the recommended ices for the plugin,
    • there can be multiple lists of ices,
    • the ice lists are stored in profiles; there's at least one profile, default,
    • the ices can be selectively overriden.

The any-node Package

This package is special – it is designed for easy installing of any Node modules inside the plugin directory, exposing their binaries via shims (i.e.: forwarder scripts) created automatically by Bin-Gem-Node annex.

The Node module(s) to install are specified by the param'MOD → {module1}; MOD2 → {module2}; …' ice. The name of the plugin will be {module1}, unless id-as'' ice will be provided, or the IDAS param will be set (i.e.: param'IDAS → my-plugin'; MOD → …).

A few example invocations:

# Install `coffee-script' module and call the plugin with the same name
zplugin pack param='MOD → coffee-script' for any-node

# Install `remark' Markdown processor and call the plugin: remark
zplugin id-as=remark pack param='MOD → remark-man; MOD2 → remark-cli' for any-node

# Install `pen' Markdown previewer and call the plugin: my-pen
zplugin pack param='IDAS → my-pen; MOD → pen' for any-node

Default Profile

The only profile that does all the magic. It relies on the %PARAM% keywords, which are substituted with the value from the ice param'PARAM → value; …'.

The Zplugin command executed will be equivalent to:

zplugin lucid id-as="${${:-%IDAS%}:-%MOD%}" as=null \
    node="%MOD%;%MOD2%;%MOD3%;%MOD4%;%MOD5%;%MOD6%;%MOD7%;%OTHER%" \
    sbin="n:node_modules/.bin/*" for \
        zdharma/null

The package is thus a simplifier of Zplugin commands.