Skip to content

Instantly share code, notes, and snippets.

{
"libs":[
"browser",
"chai",
"ecma5",
"ecma6",
"jquery",
"underscore"
],
"plugins": {

NPM Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

##List of less common (however useful) NPM commands

######Install a package and also update package.json with the installed version and package name.

NPM Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

##List of less common (however useful) NPM commands

######Install a package and also update package.json with the installed version and package name.

@vmlinz
vmlinz / npm-cheat-sheet.md
Created June 27, 2016 14:51 — forked from AvnerCohen/npm-cheat-sheet.md
Node.js - npm Cheat Sheet

Node.js - npm Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

##List of less common (however useful) NPM commands

######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:

@vmlinz
vmlinz / setting-up-es6.md
Created June 29, 2016 04:42
Book on how to setup es6
@vmlinz
vmlinz / nodejs-cluster-zero-downtime.md
Created July 28, 2016 04:48 — forked from jedi4ever/nodejs-cluster-zero-downtime.md
nodejs clustering, zero downtime deployment solutions

Clustering: The basics

The trick? pass the file descriptor from a parent process and have the server.listen reuse that descriptor. So multiprocess in their own memory space (but with ENV shared usually)

It does not balance, it leaves it to the kernel.

In the last nodejs > 0.8 there is a cluster module (functional although marked experimental)

Keybase proof

I hereby claim:

  • I am vmlinz on github.
  • I am vmlinz (https://keybase.io/vmlinz) on keybase.
  • I have a public key whose fingerprint is 05A6 51B6 C1E8 98FA C5C7 A6C3 E22A E2B5 4C4E E919

To claim this, I am signing this object:

// @flow
import React from 'react';
const defaultFlags = {
// If logType is set to keys then the props of the object being logged
// will be written out instead of the whole object. Remove logType or
// set it to anything except keys to have the full object logged.
logType: 'keys',
// A list of the param "types" to be logged.
// The example below has all the types.