Node Package Manager Course: Build and Publish NPM Modules
4.0 (16 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
10,721 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Node Package Manager Course: Build and Publish NPM Modules to your Wishlist.

Add to Wishlist

Node Package Manager Course: Build and Publish NPM Modules

Learn to build and publish your own npm modules so other developers can use
4.0 (16 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
10,721 students enrolled
Last updated 6/2017
English
English
Curiosity Sale
Current price: $10 Original price: $30 Discount: 67% off
30-Day Money-Back Guarantee
Includes:
  • 6.5 hours on-demand video
  • 5 Supplemental Resources
  • 3 Coding exercises
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Install node version manager (NVM) to enable them use different versions of node
  • Learn to use git and node command prompt
  • Create and publish a package that generates random alphanumeric characters
  • Publish package that manipulates arrays
  • Publish package that works with strings
  • Learn to use node http module
  • Use javascript promises
  • Build and publish a package that interacts with an external API
  • Write unit tests to test javascript functions
View Curriculum
Requirements
  • Basic knowledge of javascript
  • Nodejs Installed
  • A text editor of your choice
Description

NPM (Node Package Manager) is a package manager for node.js packages or modules. NPM consist of a command line client and an online database of public and private packages, called the npm registry. NPM makes it easy for javascript developers to share and reuse codes, and also makes it easy to update the codes. All packages on the npm registry solves at least one problem. A package comes with an important file called package.json which usually contains metadata about the project. Packages can be installed as dependencies which are used in the project or as dev dependencies which are only used for testing or for development. Examples of very popular packages are:

  • Express
  • Async
  • Mongoose
  • React
  • Moment
  • Request etc

Do you have an idea of a node package/module that will help other developers like you but don't know how to start or where to start from?

Are you looking to learn how node modules are built and published? Then this course is for you.

In this course, you will learn step by step on writing the javascript codes and adding them to the module files. You will write the codes from scratch and also learn how to publish the modules to the npm registry.

In this course you will create modules that

  • Generates random alphanumeric characters
  • Allows arrays to be manipulated
  • Manipulates strings
  • Interact with external API to return results

You will also learn

  • To setup the project for git and add the codes to the github repository
  • To setup the projects for NPM 
  • To write javascript functions to work with array and strings
  • To write unit tests using mocha, expect and supertest libraries
  • To publish the modules


Who is the target audience?
  • Anyone with a passionate mindset to learn
  • Anyone that wants to learn how to publish their own npm modules/packages for other developers to use
Students Who Viewed This Course Also Viewed
Curriculum For This Course
38 Lectures
06:38:09
+
Start Here
5 Lectures 29:19

Installing Node
04:44

Node Version Manager
12:36

Installing Git
05:47

Node Package Manager (NPM)
03:43
+
Random String Module
7 Lectures 01:17:22
Section Introduction
02:18

At the end of this video, students will be able to create the function to generate random alphanumeric characters.

Create Random Character Function
21:46

Brief description about the crypto module.

Node Crypto Module
06:56

Setup the project and create a github repository

Setup Project for Github
16:15

Add the function to the server file and export the object

Add Random Character Function to Server.js File
08:36

Add description to the README file

Add Text to README File
10:56

Publish the module to npm

Publish Random String Module
10:35

Let's reinforce our knowledge of creating and publishing the random string module

Random String Module Quiz
3 questions
+
Javascript Array Module
10 Lectures 02:06:03
Section Introduction
02:04

At the end of this video, students will be able to create functions with javascript that will return sum and average values of an array

Sum and Average Array Function
15:16

At the end of this video, students will be able to create functions with javascript that will return maximum and minimum values of an array

Maximum and Minimum Array Function
14:15

At the end of this video, students will be able to create a function with javascript that will return uniq values of an array

Uniq Array Function
14:36

At the end of this video, students will be able to create a function with javascript that will return uniq values of an array containing strings

Uniq String Array Function
07:12

Setup project and creating github repository

Project Setup
09:35

Adding the array functions to server file and exporting the object

Adding All Functions to Project and Exporting
12:20

At the end of this video, students will be able to run simple unit tests using mocha and expect libraries

Running Unit Test With Mocha and Expect Assertion Libraries - Part 1
18:36

At the end of this video, students will be able to run simple unit tests using mocha and expect libraries

Running Unit Test With Mocha and Expect Assertion Libraries - Part 2
23:49

Publish the package to NPM

Publish Module to NPM
08:20

Average Array Function
1 question
+
Javascript String Module
8 Lectures 01:14:28
Section Introduction
02:46

At the end of this video, students will be able use javascript to create a function that converts first letter of every word in a sentence to uppercase

Function to Convert First Letter of A Word to Uppercase
14:53

A function that repeats a string the number of times specified

Function to Repeat A String
08:14

A function that checks if a string ends with a specified letter. The function returns true f it does else it returns false

Function to Check If A String Ends With A Given Letter
11:02

A javascript function that reverses a string

Reverse String Function
09:38

A javascript function that checks for the longest word in a sentence and then returns the word and its length in an array

Preview 10:46

Setup project and create github repository

Setup Project
04:28

Add and export the function and also publish the module to NPM

Publish String Module to NPM
12:41

Function To Return Longest Word
1 question

Reverse String Function
1 question
+
Fixer.io Node Module
8 Lectures 01:30:57
Section Introduction
01:33

A brief description about the node built-in http module

Node HTTP Module
20:29

A brief description about fixer.io API that will be used to create this module

Fixer.io API
05:24

A function that returns the latest currency exchange rates from fixer.io

Function to Return latest Currency Exchange Rate
18:20

Functions to get historical exchange rates, set base currency and also get specific exchange rates

Function to Return Historical, Specific Rate and Set Base Currency for Fixer.io
10:05

Trying out the module before it is published to NPM

Trying Out Module Before Publishing
12:03

A simple unit test using mocha and supertest

Unit test With Mocha and Supertest Library
16:34

Publish the module to NPM

Publish Module to NPM
06:29

Try to recall what you have learnt

Module Quiz
5 questions
About the Instructor
Uzochukwu Eddie Odozi
4.1 Average rating
485 Reviews
33,404 Students
5 Courses
Software Developer

Hi, i am Uzochukwu Eddie Odozi. I am a software developer who has interest in web and game development. I have a bachelors in Mathematics and an M.Sc. in Computer Engineering from Tallinn University of Technology.

I enjoy working with php, mysql, Jquery, C# as well as nodejs. I enjoying coding a lot.

I have had many success and failures in web development and all those has contributed to where I am today.