Skip to content

Instantly share code, notes, and snippets.

View NeoTech's full-sized avatar

Andreas Pettersson NeoTech

  • Roughedge AB
  • Sweden
  • 00:51 (UTC +02:00)
View GitHub Profile
@tmpvar
tmpvar / managing-dependencies.md
Last active October 17, 2018 00:20
using modules in your new nodejs module

Managing dependencies

Ok, so you've built your first module, but now you want to make it use one of the many libraries available via the npm registry.

finding modules

There are a few ways to find a module. You can use http://npmjs.org or http://npmsearch.com to find modules that may fit what you need.

some advice for choosing modules

@tmpvar
tmpvar / my-first-module.md
Last active December 20, 2021 18:48
how to create your very first node.js module and publish it to the npm registry

building your first node module

This is pretty simple, lets dive in!

choose a name

Find a name that isn't taken and clearly describes what your module is doing

$ npm view your-first-node-module