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

@deviljin112/slsm

v0.0.6

Published

CLI application that manages SLS dependency installation and deployment

Downloads

5

Readme

SLSM

Serverless management CLI tool.

About

A simple CLI tool to quickly install dependencies (NodeJS Only) and deploy serverless services.
Why? Because jumping between folders and running sls deploy is too much for me, why write 2+ commands when you can just write one.
It also helps with branch hopping to make sure you've installed all your dependencies, or - like me - if you use nvm lets you reinstall any dependencies for that node version.
Who is it for? For me - mainly - but maybe there's someone who will find a use for it. Or even better someone decides to expand and improve it!

Usage

If you want a menu experience - slsm. That's it, the rest is self-explanatory.
If you want SPEED - slsm followed by one (or more) of the following arguments:

  • -i | --install => Performs the installation of dependencies
  • -d | --deploy => Performs the deployment of services
  • <service_name> => Giving a string is treated as a service to find / target

These can be combined (or not) to get slsm to just prompt for the missing information.

Examples

slsm -i api

Will install a service called api and not prompt for any user input.

slsm api s3

Will prompt you for an action and then proceed to find the api and s3 service.

slsm -id

Will perform both the install and deploy actions and prompt for a service.

Fun Fact

You can give slsm just the root path you want. Let's say you have a root folder project and inside you split your application into multiple folders like, frontend, middleware, backend. Each of these folders has its own set of sub folders with services.
You can provide slsm with just the root folder you want and it will find all the services and which ones require what action.

Gotchas

If you have more than one service with the same name or a root folder named the same as a service, you're in for a treat.
slsm can end up in an infinite loop depending on your structure.

Disclaimer

This isn't the most optimised code, it's supposed to save me time and I didn't spend too much time overthinking every line. It does what its supposed to and that's good enough for me. If you want to improve it PRs are always welcome.
Only tested on Ubuntu 22.04 with Node 14 + 16.

License

WTFPL