KO
|
EN
gitlite โ search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#claude-code
#codex
#cli
#developer-tools
#react
#windows
tiny-package-manager
โ 472
Open GitHub โ
Learn how npm or Yarn v1 works.
Download README (.md)
Explore Similar Repositories
HTML-Crypto-Currency-Chart-Snippets
:
๐น Simple HTML Snippets to create Tickers / Charts of Cryptocurrencies with the TradingView API ๐น
recce
:
The data-validation toolkit for enhanced dbt (data build tool) PR review
AngularASPNETCore2WebApiAuth
:
Sample project demonstrating jwt-based authentication with an Angular (v5.2.1) frontend and ASP.NET Core 2 WebApi. Includes both local user registration with .NET Core Identity membership and facebook login scenarios.
radix-svelte
:
A port of Radix UI for Svelte
Plugin.LocalNotification
:
The local notification plugin provides a way to show local notifications from .Net MAUI apps .
// repository documentation
Was this content helpful?
โ 0
(0 ratings)
Select Rating:
โ
โ
โ
โ
โ
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
tiny-package-manager
?
Download (.md)
# Tiny Package Manager > A very very simple demo and guide for explaining package manager. ## Introduction As a JavaScript developer, you may use package manager like [npm](https://www.npmjs.com/) or [Yarn](https://yarnpkg.com/) frequently. However, do you know how a package manager works? Or, you may be curious about how to build a package manager. Well, the purpose of this guide is not to let you re-invent a new wheel. There is no need to do that because both npm and Yarn are mature and stable enough. The purpose is just to explain how a package manager works under the hood. You can read the code, and the comments will explain how it works. Note: To simplify the guide and make it as simple as possible, this demo doesn't handle some edge cases and catch errors and exceptions. If you are really curious about that, it's recommended to read the source code of [npm](https://github.com/npm/npm) or [Yarn](https://github.com/yarnpkg/yarn). ## Features - [x] Download packages to `node_modules` directory. - [x] Simple CLI. - [x] Simply resolve dependency conflicts. - [x] Flatten dependencies tree. - [x] Support lock file. (Like `yarn.lock` or `package-lock.json`) - [x] Add a new package through CLI. (Like `yarn add` or `npm i <package>` command) - [ ] Run lifecycle scripts. (`preinstall` and `postinstall`) - [ ] Symlink the `bin` files. ## How to start? Read the source code in the `src` directory. You can read the `src/index.ts` file in the beginning. If you would like to try this simple package manager, just install it globally: Via Yarn: ``` $ yarn global add tiny-package-manager ``` Via npm: ``` $ npm i -g tiny-package-manager ``` Then just go to a directory which contains valid `package.json` and run: ``` $ tiny-pm ``` ## License MIT License (c) 2018-present [Pig Fang](https://gplane.win/)