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

serverless-async-await

v1.1.6

Published

Serverless Plugin to use async await without Babel , WebPack or Typescript. Simple transpilation using AsyncToGen

Downloads

8

Readme

Serverless Async Await

serverless npm version Build Status

Frictionless async await transpiler for Node 0.12 using async-to-gen

Transpile your entire project with async await.

Instalation

npm install --save-dev serverless-async-await

Usage

serverless package

Or

serverless deploy

Both will transpile your code to the temporary folder and then get copied to the .serverless folder.

Consideration

When running

sls invoke local

the code is not transpiled , instead it uses your native node version.

The plugins will first transpile your code to a temporary __build__ folder, before copying everything to the .serverless folder.

Advantage over Typescript and Webpack / Babel

Unlike typescript plugin and webpack serverless async await will not compiled your code it will only get translated. You can see the test/handlers folder to get an idea of what your code will look like.

Hence Webpack and Typescript makes debugging hell.

If you had a bad experience with those tools, this plugins will save you tons of time and energy with a frictionless transpiling !

The transpiling is ultra lightweight , only 25 characters are added to your code.

Troubleshooting

Make sure a __build__ folder does not exist when packaging or deploying.