New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lala

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lala

A pattern-based ignore generator.

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
1
Created
Source

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>

Keywords

gitignore

FAQs

Package last updated on 08 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts