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

nagrant

v1.3.0

Published

Nagrant is a pre-packaged Vagrant box providing a default environment in a minute

Downloads

91

Readme

Nagrant

Stable V1.1.0 License MIT

Intro

Nagrant is a completely disposable pre-package vagrant box that provide you a simple development environment to create nodejs servers without requiring your to install anything (except nodejs and vagrant). Box can be created an launched in a minutes, with a minimal configuration !

Nagrant can run on Linux, Windows and Mac and include Nodejs v8, MongoDB 3.4, MySQL and Redis. More will be added.

How to use

You can either instal Nagrant as a global or local package.

  • global : nagrant make
  • local : $(npm bin)/nagrant make

Command list :

COMMANDS : 

make --force --example --after	create nagrant box
help <command>                	Show help

ARGUMENTS : 

--force                       	Force rewrite of Nagrant files
--example                     	Include creation of Nagrant.yml.example file
--after                       	Include creation of after script

OPTIONS : 

--quiet                      		Quiet mode
-v, --verbose                		Verbose mode

Requirements

Before using Nagrant, you must install Vagrant and any supported virtualization software (Virtualbox, VMWare or Parallels).

Node

To add any node instance to the vagran box, you can edit the node property of the Nagrant.yml file.

node:
  - dir: /home/vagrant/node/
    script: index.js

To send parameters to your node instance, you can use the params property. Any property will be set as environment variable reachable with process.env.

node:
  - dir: /home/vagrant/node/
    script: index.js
    params:
   	  - PORT: 8080
   	  - MONGODB_NAME: testproject

Folders

To add any shared folders to the vagrant box, you can edit the folders property of the Nagrant.yml file.

folders:
  - map: ~/Directory
    to: /home/vagrant/Directory

Ports

This is a list of default ports fowarded to your Nagrant env:

  • HTTP: 8000 → 80
  • HTTPS: 44300 → 443
  • MySQL: 33060 → 3306
  • MongoDB: 27047 → 27017
  • Redis: 63790 → 6379

Fowarding additional pots

ports:
  - from: 8080
    to: 80
  - from: 443
    to: 44300