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

cloud-pages

v1.0.1

Published

Push your pages to cloud buckets (S3 for now).

Downloads

4

Readme

cloud-pages

Push your pages to cloud buckets (S3 for now).

NPM version Build status Dependency Status devDependency Status Coverage Status Code Climate Dependency Status

API

Functions

initCloudPages($, [name], [dependencies]) ⇒ undefined

Declare cloudPages in the dependency injection system and allow to change its name/dependencies

Kind: global function

| Param | Type | Default | Description | | --- | --- | --- | --- | | $ | Knifecycle | | The knifecycle instance | | [name] | String | 'cloudPages' | The name of the service | | [dependencies] | Array | ['ENV', 'glob', 'fs', 'log', 's3', 'mime', 'git'] | The dependencies to inject |

cloudPages(services, options) ⇒ Promise

Deploy pages to the cloud and optionnally remove old versions

Kind: global function
Returns: Promise - A promise to be resolved when the deployment ended

| Param | Type | Description | | --- | --- | --- | | services | Object | Services (provided by the dependency injector) | | services.ENV | Object | Environment service | | services.glob | function | Globbing service | | services.fs | Object | File system service | | services.log | function | Logging service | | services.s3 | Object | S3 bucket service | | services.mime | Object | MIME mapping service | | services.git | Object | Repository service | | services.time | function | Time service | | options | Object | Options (destructured) | | options.last | Number | Number of prior versions to keep | | options.delay | Number | Delay for keeping prior versions | | options.dir | String | Directory that contains assets to deploy | | options.gitDir | String | Directory of the git repository to look for versions | | options.files | String | Pattern of files to deploy in the directory | | options.ignore | String | Pattern of files to ignore in the directory | | options.remove | Boolean | Boolean indicating if ld versions should be removed | | options.version | String | Version for the current deployment | | options.bucket | String | Targetted bucket |

License

MIT