~/talk

The Ins-and-Outs of Publishing a Module to npm

Talkat npm camp 2016 · on Saturday, 2016-07-30· [javascript, developer-experience]

Shows how to create, test, build and publish a real npm package called transleg using npm init, mocha, Babel and npm scripts, automating build with a prepublish hook and excluding source with .npmignore. Demonstrates versioning with npm version, explains the surprising 1% rule (≈84,000 publishers vs ~4.5M users), and runs through npm login and the single command npm publish to get a working module onto the registry.

AI-written summary · about

  1. 0:00Start
  2. 3:41How did you get permission to publish a module on npm?
  3. 5:59Let's make a little module for working with rectangles.
  4. 6:30Option A: Scoped modules.
  5. 18:19preinstall prestart
  6. 19:09npm run sandwich
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.