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

effortless-lambda

v0.1.2

Published

A TrackVia Integration generator

Downloads

3

Readme

Effortless Lambda

A generator to quickly create a modern development environment for an AWS Lambda function.

What Does it Do?

It generates a bare-bones ES6 Javascript project that provides helpful utilities to create, test, and publish a Node function. Instead of creating a new directory with all the boilerplate and configuring Babel, ESLint, and testing each and every time, you can have these things automatically configured for you. Take a look inside the template folder to get an idea of what is provided.

It can also Webpack and zip your final bundle making it easy to simply upload the final file to AWS.

How Do I Get Started?

No need to install anything, just run:

npx effortless-lambda

It will ask you for four pieces of information:

  1. Name of the project
  2. Name of the author
  3. A description of your project (optional)
  4. What linting ruleset you'd like to use (StandardJS, Google, None)

Answer these questions, cd into the newly created directory and open it up in your code editor.

How Do I Use It?

Any changes to the src/ folder are what will be considered part of your final project. You can also make changes to the testParameters.js file at the root if you'd like to run your project locally (the script to do so is below) and pass your own parameters without accidentally wrapping them into your final product.

There's a couple pre-configured npm scripts that will help speed some things up:

  • npm run start: Builds your src/ folder and runs your project with the parameters supplied in testParameters.js.
  • npm run build: Runs webpack on your project and outputs the contents to a dist/ folder.
  • npm run lint:configure: Prompts the default ESLint configuration questions to resset/initialize your linting rules.
  • npm run test: Runs all of your Jest tests.
  • npm run zip <NAME-OF-ARCHIVE>: Zips your built project and outputs it as a .zip file with the name you provided in this command in a zipUpload/ folder at the root. If you don't pass a name at the time of the command, it will fall back to the name property in your package.json.