Skip to content

Latest commit

 

History

History

README.md

Node Package Manager - JS Expert

👨‍💻 Developed by Matheus Ramalho de Oliveira
🏗️ Brazilian Software Engineer
✉️ kastorcode@gmail.com
🦫 LinkedInInstagram


This module serves as a comprehensive guide to understanding and utilizing Node Package Manager (NPM) for managing JavaScript packages, it covers essential concepts, practical applications and best practices for package management in Node.js.


Table of Contents

  1. My First NPM Module
  2. Understanding Package Versions
  3. Distributing Packages on the Web
  4. NPM Workspaces

My First NPM Module

This section introduces the basics of creating your first npm module, it includes practical examples and exercises to help you get started.

  • fluentsql-jest-tdd-yt: Contains a sample library that is a small database abstraction that uses the Builder pattern, as well as Jest for Test-Driven Development (TDD).
  • myapp: A sample application demonstrating the use of the @kastorcode/fluentsql-jest-tdd-yt npm module.
  • ref.txt: Reference material related to this module.

Understanding Package Versions

Here, we delve into semantic versioning (semVer) and discuss the implications of package-lock.json, including potential vulnerabilities and pollution.

Distributing Packages on the Web

This section covers how to distribute NPM packages using GitHub and Verdaccio. It also addresses managing multiple user profiles on your machine and associating registries with user scopes.

NPM Workspaces

Explore the concept of NPM Workspaces, which allow you to manage multiple packages within a single repository.

  • app: A sample application using @kastorcode/date-util.
  • workspaces: Contains 2 examples demonstrating the use of npm workspaces.
  • ref.txt: Additional reference material related to npm workspaces.

<kastor.code/>