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

lazypirate-cli

v0.1.30

Published

the essential npm tool for the lazy pirate

Downloads

7

Readme

lazypirate-cli

The essential npm tool for lazy pirates.

Ever get an exciting idea you wanna prototype, roll up your sleeves, start setting the project up...

... look up the right command for this thing ... fix that thing ... forget what the project is about...

well this is the tool for you!

In two lines of code this tool will create boilerplates for several common applications:

  • Webpack
  • A-Frame
  • P5
  • socket.io
  • johnny-five

once installed, running npm start will open up your hot-reload enabled project in your favourite web browser.

Quick Start - Local Install

A local install is recommended, the cli package is very lightweight as its main purpose is to install other packages and move a few files around. Begin by running the following in an empty directory:

yep an empty directory

npm i lazypirate-cli

Once installed, simply run the init command with your chosen boilerplate

example:

npx lazypirate init p5

Boilerplate options:

npx lazypirate init webpack
npx lazypirate init aframe
npx lazypirate init socket.io
npx lazypirate init p5
npx lazypirate init johnny-five

Quick Start - Global Install

If installed globally no need for npx. First non-flag argument after create will be the new directory. The second argument is the boilerplate type. ie. 'aframe'.

npx lazypirate create -f myProject webpack

npx lazypirate create -f myProject aframe

Flags

-f

This will delete the chosen folder if it already exists.

Otherwise the program will not run if the folder exists.

to run webpack on local server for testing of network and mobile devices

npx webpack-dev-server --host 0.0.0.0

TODO

  • Johnny 5 auto resolve arduino port using avr-girl

    • Check robot-io-johnny-five for how to
  • Add raspi board support - seperate from arduino


//code for raspi board
npm i raspi-io
const Raspi = require('raspi-io');
const board = new five.Board({
    io: new Raspi()
})