Slide 1

Slide 1 text

npm: new and undocumented features Robert Kowalski @robinson_k ! ! HH.js - December 2013

Slide 2

Slide 2 text

marc falardeau - http://www.flickr.com/photos/49889874@N05/4772680734/

Slide 3

Slide 3 text

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/

Slide 4

Slide 4 text

Juriën Minke - http://www.flickr.com/photos/jeminke/7009161635/ fast development

Slide 5

Slide 5 text

Community news

Slide 6

Slide 6 text

European npm mirror Latency :-(

Slide 7

Slide 7 text

European npm mirror $ npm install express npmjs.org: 25.677s npmjs.eu: 5.719s

Slide 8

Slide 8 text

European npm mirror npmjs.eu visit http://npmjs.eu/ for docs how to use it

Slide 9

Slide 9 text

New or undocumented features

Slide 10

Slide 10 text

npm init Demo!

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

{! "name": "hamburg-js",! "license": "BSD",! "version": "1.0.0",! "author": "Robert Kowalski ",! "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"! }! }!

Slide 13

Slide 13 text

Boring github urls "repository": {! "type": "git",! "url": "git://github.com/robertkowalski/hamburg-js"! }

Slide 14

Slide 14 text

shorthand style to the rescue! "repository": {! "type": "git",! "url": "robertkowalski/hamburg-js"! }

Slide 15

Slide 15 text

Your homepage is the github page? {! "homepage": "http://github.com/robertkowalski/hamburg-js",! "repository": {! "type": "git",! "url": "git://github.com/robertkowalski/hamburg-js"! }! }!

Slide 16

Slide 16 text

just keep it off "repository": {! "type": "git",! "url": "robertkowalski/hamburg-js"! }

Slide 17

Slide 17 text

outdated update "dependencies": {! "express": "~3.3.1"! }

Slide 18

Slide 18 text

outdated update "dependencies": {! "express": "~3.3.1"! }

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

npm outdated --json

Slide 22

Slide 22 text

npm ls --json Demo!

Slide 23

Slide 23 text

Why I am telling you this?

Slide 24

Slide 24 text

zanthia - http://www.flickr.com/photos/zanthia/4085389085 stranded?

Slide 25

Slide 25 text

Thanks Robert Kowalski ! @robinson_k

Slide 26

Slide 26 text

Bonus slide JS Unconf is a thing Geomatikum Hamburg - 26./27. April 2014 Tickets: http://jsunconf.eu