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

lala

v1.2.2

Published

A pattern-based ignore generator.

Downloads

14

Readme

Lala

A pattern-based ignore generator.

Lala is a command line program for generating common, pattern-based ignore files. Lala leverages the well-built templates provided in the github/gitignore repository using the the GitHub API. Lala was inspired by karan/joe.

Installation

Lala is meant to be installed as a global npm module, making the program lala available everywhere in your terminal:

$ npm install -g lala

Help

For command line help:

$ lala help

Usage

List Ignore Templates

To get a list of available ignore templates:

# Lists available ignore templates
$ lala list

Output Ignore Templates

Lala can output both individual and combinations of ignore templates. Lala outputs them as console messages which can be piped into another file for use.

Command line pattern:

lala ignore <template...>

As a real-world example, let's build an ignore file for a Git repository containing a Visual Studio solution with ASP.NET/C# projects that leverage node/npm tooling:

# Create a file containing the ignore pattern templates for a Git repository
$ lala ignore visualstudio node > .gitignore

# Or create the file by individually appending each ignore pattern template
$ lala ignore visualstudio >> .gitignore
$ lala ignore node >> .gitignore

# Or use a Mercurial repository instead
$ lala visualstudio node > .hgignore

Configuration

Lala uses the GitHub API to pull down the latest templates from the github/gitignore repository. The GitHub API allows up to 60 requests per hour, unauthenticated, for a given IP address. In all but the most extreme usage scenarios you would have a difficult time exceeding that rate limit with Lala alone.

View Current Rate Limit

To see your rate limit for the current configuration of Lala:

# Check your rate limit
$ lala limit

Configure GitHub API Authorization

In the event that you need to increase your rate limit beyond what is provided anonymously, you can set your GitHub username and password or API token:

# Run the configuration wizard
$ lala config

# Or bypass the configuration wizard and send the values by command line parameters
$ lala config -u <GitHub_username> -p <GitHub_password_or_token>