Upgrade to Pro — share decks privately, control downloads, hide ads and more …

npm: new and undocumented features

npm: new and undocumented features

Node has one of the best package managers around: npm. With over 50k packages the npm registry has an average growth of 116 packages/day and every month a lot of features are added to npm itself. In my talk I will show some brand new features and hidden gems of npm to make you a more productive npm user.

Robert Kowalski

December 16, 2013
Tweet

More Decks by Robert Kowalski

Other Decks in Technology

Transcript

  1. npm grows ! ! ! ! 0 15000 30000 45000

    60000 2011 2012 2013 Package count Sources: Isaac Schlueter: „How npm Works“, nodeconf 2011 and 
 http://www.modulecounts.com/
  2. hidden gem: undocumented feature $ npm config set init-module $YOUR_PATH_TO_THE_TEMPLATE!

    Example template: 
 https://github.com/isaacs/promzard/blob/master/example/substack-input.js
  3. {! "name": "hamburg-js",! "license": "BSD",! "version": "1.0.0",! "author": "Robert Kowalski

    <[email protected]>",! "description": "Hamburg JavaScript Meetup",! "main": "index.js",! "scripts": {! "test": "mocha -R spec"! },! "devDependencies": {! "mocha": "~2.1.4"! },! "repository": {! "type": "git",! "url": "git://github.com/robertkowalski/hamburg-js"! }! }!
  4. Your homepage is the github page? {! "homepage": "http://github.com/robertkowalski/hamburg-js",! "repository":

    {! "type": "git",! "url": "git://github.com/robertkowalski/hamburg-js"! }! }!
  5. Bonus slide JS Unconf is a thing Geomatikum Hamburg -

    26./27. April 2014 Tickets: http://jsunconf.eu