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

wiper

v1.3.0

Published

A command line tool that gaze at your file changes and do a tiny-lr when needed

Downloads

53

Readme

wiper

npm version build status

A command line tool that watch file changes and do a livereload when needed (compatible with both node.js and io.js), and works over https.

Motivation

This allows us to use npm as our build tool instead of grunt or gulp.

Install

npm install wiper --save-dev or npm install -g wiper

Usage

In your package.json, add these lines.

{
	"scripts": {
		"watch": "DEBUG=wiper wiper -p 1234 -t 2000 -w \\*\\*/\\*.js,\\*\\*/\\*.css"
	}
}

Now try npm run watch, a livereload server will be running at localhost:1234 and watching updates to javascript/css files.

Options

  • -p port to listen on, default to 35729.
  • -t debounce timeout, default to 5000ms.
  • -w files to watch; note that you should use \* to prevent bash from expanding globs, as we want wiper to expand it instead, also see that we double escape \\* in package.json due to additional string escapes.
  • --cert=ssl.crt and --key=ssl.key to start livereload server on https, generate your self-signed certificate and import them into your CA trust store for this to work.

Integration

To integrate with your koa/express server, use modules like koa-livereload or connect-livereload.

// for http
app.use(livereload({
	port: 1234
}));

// for https
app.use(livereload({
	src: 'https://example.com:1234/livereload.js?snipver=1'
}));

Or manually insert this line onto your template.

<script src="http://localhost:1234/livereload.js?snipver=1"></script>

Now your browsers will be refreshed automatically when file change occurs. And see, no grunt or gulp needed, just good-old npm.

License

MIT