# @fnpm-io/cli

> FNPM CLI Tool.

Latest version **0.6.0** (published 2022-10-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install @fnpm-io/cli
pnpm add @fnpm-io/cli
yarn add @fnpm-io/cli
bun add @fnpm-io/cli
```

Provides the command `fnpm`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2022-10-04 |
| First published | 2022-09-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 14 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 (+39 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 546 |
| Maintainers | ialdama |

## Links

- npm: https://www.npmjs.com/package/@fnpm-io/cli
- Repository: https://github.com/nachoaldamav/fnpm
- Homepage: https://github.com/nachoaldamav/fnpm#readme
- Issues: https://github.com/nachoaldamav/fnpm/issues
- npm.io page: https://npm.io/package/@fnpm-io/cli

## Dependencies (14)

- [ora](https://npm.io/package/ora.md) 6.1.2
- [tar](https://npm.io/package/tar.md) 6.1.11
- [glob](https://npm.io/package/glob.md) 8.0.3
- [axios](https://npm.io/package/axios.md) 0.27.2
- [chalk](https://npm.io/package/chalk.md) 5.0.1
- [execa](https://npm.io/package/execa.md) 6.1.0
- [pacote](https://npm.io/package/pacote.md) 13.6.2
- [semver](https://npm.io/package/semver.md) 7.3.7
- [prompts](https://npm.io/package/prompts.md) 2.4.2
- [bin-links](https://npm.io/package/bin-links.md) 3.0.3
- [@types/tar](https://npm.io/package/@types/tar.md) 6.1.3
- [markdown-table](https://npm.io/package/markdown-table.md) 3.0.2
- [npm-pick-manifest](https://npm.io/package/npm-pick-manifest.md) 7.0.2
- [read-package-json-fast](https://npm.io/package/read-package-json-fast.md) 2.0.3

## Recent versions

- 0.6.0 (latest) — 2022-10-04
- 0.5.3 — 2022-10-03
- 0.5.0 — 2022-10-02
- 0.4.21 — 2022-10-01
- 0.4.20 — 2022-10-01
- 0.4.19 — 2022-09-27
- 0.4.17 — 2022-09-26
- 0.4.16 — 2022-09-26
- 0.4.14 — 2022-09-26
- 0.4.13 — 2022-09-26
- 0.4.11 — 2022-09-26
- 0.4.10 — 2022-09-26
- 0.4.9 — 2022-09-26
- 0.4.8 — 2022-09-25
- 0.4.7 — 2022-09-25
- … 8 more at https://npm.io/package/@fnpm-io/cli/versions

## README

# FNPM (WIP)
FNPM is an "alternative" for NPM, it is faster and saves more space.

**DISCLAIMER 🚧**

This project was made to learn more about Package Managers, for now you should only use it to play with it.

## Requirements
- Node v16 or higher
- Linux or Mac OS (Working on Windows support [issue](https://github.com/nachoaldamav/snpm/issues/40))

## CLI
The FNPM CLI is used to install packages from the package.json of a project.

Its advantages are that it is faster than NPM and saves more space.

### Instalation
```bash
npm i @fnpm-io/cli -g
```

### Commands
- `fnpm install [pkg (optional), flags]` Installs packages
- `fnpm run <script> <params>` Run script from package.json
- `fnpm create <template> <arguments>` Create a project from a template (Similar to npm init)
- `fnpm benchmark` Tests SNPM against NPM and PNPM
- `fnpm clear` Remove .snpm-cache folder
- `fnpm ls <pkg>` Show versions installed by FNPM


### Todo
- [ ] Make it work in some JS Frameworks ([Follow progress here](https://github.com/nachoaldamav/fnpm/issues?q=is%3Aissue+is%3Aopen+label%3Aframeworks))
- [ ] Fix monorepos integration (WIP, degradated performance in some repos)

### Why is it faster?
SNPM uses the same installation system as PNPM, fetch dependency, download dependency. Without waiting for the rest of the dependencies.

Now you are probably wondering how that makes the space more efficient than in NPM.

Each dependency is a hard link to a common store inside `.fnpm-cache`, so all your projects use shared dependencies.

### It works?
Short answer, probably no, but in some cases it works. (For now)

I've selected some quickstart templates to test FNPM, and I'm working on make it work in all of them.

If you want to test a template, you can use Next or Vite, I've already tested them and it should work.

(If you want to test a template and it doesn't work, please open an issue)

---
_Source: https://npm.io/package/@fnpm-io/cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
