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

nodeinstall-pro

v0.1.7

Published

[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down

Downloads

1

Readme

Nodeinstall

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Another node installer that bundle node with application.

Why

Nodeinstall is not a node version switcher, it will install node locally(in node_modules). Then you can deploy application everywhere without Node installed.

You can start application with npm start easily, npm will find node from $PWD/node_modules/.bin/node

Nodeinstall let application use the same node version in every environment(local development for production).

Installation

$ npm install nodeinstall -g

Feature

  • ✔︎ Install Node to Local
  • ✔︎ Support Alinode and NSolid
  • ✔︎ Support RC and nighly
  • ✔︎ Package Define
  • ✔︎ Ignore Unsafe Versions

Usage

Install node to node_modules

$ nodeinstall 6.0.0
$ ./node_modules/.bin/node -v

You can use semver range to match the real version

$ nodeinstall ^6.0.0
$ ./node_modules/.bin/node -v

You can also use nodeinstall to install Alinode or NSolid

$ nodeinstall --install-alinode 1.6.0
$ ./node_modules/.bin/node -p 'process.versions.alinode'
$ nodeinstall --install-nsolid 1.6.0
$ ./node_modules/.bin/node -p 'process.versions.nsolid'

You can define version in package.json

{
  "engines": {
    "install-node": "^6.0.0"
  }
}

Also support

  • install-alinode for Alinode
  • install-nsolid for NSolid
  • install-noderc
  • install-nightly

If you are in China, you can use --china flag to speed up.

API

const co = require('co');
const install = require('nodeinstall').install;
co(function* () {
  yield install({
    version: '^6.0.0',
  });
});

Options

cwd

The current directory, default is process.cwd.

version

The version that you want to install, it also can be semver range that get the right version automatically.

Version matching is based on distUrl.

distUrl

The url where to donwload the tarball, You can find all distUrl in config.js.

china

Use the mirror distUrl in china for speed.

cache

unsafeVersions

The Map contains the unsafe version and the safe version.

For example, if you install 4.0.0 that is defined in unsafeVersions as an unsafe version, it will install 4.5.0 instead.

const unsafeVersions = {
  '>= 1.0.0 < 4.4.4': '4.5.0',
};

installNode

Install Node, it's a default options. Ignore when package define matched..

installNoderc

Install Node RC, ignore when package define matched.

installAlinode

Install Alinode, ignore when package define matched.

installNsolid

Install NSolid, ignore when package define matched.

installNightly

Install Node nightly, always be the latest version, ignore when package define matched.

Questions & Suggestions

Please open an issue here.

Lisence

MIT

Contributors

|popomore|brucewar|fengmk2|lceric| | :---: | :---: | :---: | :---: |

This project follows the git-contributor spec, auto updated at Wed Feb 09 2022 22:31:04 GMT+0800.