# @omarsotillo/spm

> The only package manager you will ever need

Latest version **0.1.21** (published 2021-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @omarsotillo/spm
pnpm add @omarsotillo/spm
yarn add @omarsotillo/spm
bun add @omarsotillo/spm
```

Provides the command `spm`.

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.21 |
| Published | 2021-03-21 |
| First published | 2020-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 5 |
| Unpacked size | 121.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Omar Sotillo Franco |
| Maintainers | omarsotillo |
| Keywords | bundler, cli, npm, npm, package-managers |

## Links

- npm: https://www.npmjs.com/package/@omarsotillo/spm
- Repository: https://github.com/omarsotillo/spm
- Issues: https://github.com/omarsotillo/spm/issues
- npm.io page: https://npm.io/package/@omarsotillo/spm

## Dependencies (5)

- [meow](https://npm.io/package/meow.md) ^9.0.0
- [find-up](https://npm.io/package/find-up.md) ^5.0.0
- [inquirer](https://npm.io/package/inquirer.md) ^8.0.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [simple-git-hooks](https://npm.io/package/simple-git-hooks.md) 2.0.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.21 (latest) — 2021-03-21
- 0.1.19 — 2021-02-18
- 0.1.17 — 2021-02-18
- 0.1.15 — 2021-01-04
- 0.1.13 — 2020-12-31
- 0.1.12 — 2020-12-31
- 0.1.10 — 2020-12-28
- 0.1.9 — 2020-12-25
- 0.1.8 — 2020-12-25
- 0.1.7 — 2020-12-25
- 0.1.6 — 2020-12-25
- 0.1.5 — 2020-12-25
- 0.1.4 — 2020-12-25
- 0.1.3 — 2020-12-25
- 0.1.2 — 2020-12-25
- … 2 more at https://npm.io/package/@omarsotillo/spm/versions

## README

![SPM introduction](docs/images/spm.png)

![Last version](https://img.shields.io/github/tag/omarsotillo/spm.svg?style=flat-square)
![Travis (.com)](https://img.shields.io/travis/com/omarsotillo/spm)
[![Dependency status](https://img.shields.io/david/omarsotillo/spm.svg?style=flat-square)](https://david-dm.org/omarsotillo/spm)
[![Dev Dependencies Status](https://img.shields.io/david/dev/omarsotillo/spm.svg?style=flat-square)](https://david-dm.org/omarsotillo/omar#info=devDependencies)
[![NPM Status](https://img.shields.io/npm/dm/@omarsotillo/spm.svg?style=flat-square)](https://www.npmjs.org/package/omarsotillo/spm)

<!-- [![Coverage Status](https://img.shields.io/coveralls/omarsotillo/spm.svg?style=flat-square)](https://coveralls.io/github/omarsotillo/spm) -->

- Resolve conflicts with shared libraries in a interactive cli
- General commands: forget about the implementation of each package manager
- Accept flags from each command
- Support npm, yarn, pnpm, bundler, cargo, composer

# Installation

`yarn global add @omarsotillo/spm`

# Usage (--help)

```bash
    Usage ⚡️
      $ spm install                  - install all libraries in project package-managers
      $ spm add <library/es>         - add new library/es to the project-managers
      $ spm update <library/es>      - update library/es to the project-managers
      $ spm run <command>            - run a command in the projects package-manager
      $ spm delete <library/es>      - delete a library in the projects package-manager
      $ spm outdated                 - check outdates libraries
      $ spm list                     - list all libraries in all the projects

    Options 🗃 (all command accepts specific manager flags)
      --print, -p        - Will print the command but not execute it
      --global, -g       - Global mode installation. Commands like add will be converted to global
      --dev, -d  - Add the command in development mode
      --backend, -b      - Run command in backend package manager only
      --frontend, -f     - Run command in frontend package manager only

    Examples 🎉
      $ spm add react
      📝 Add library in the package-managers that register a react package/library
```

# Package managers supported

|     Package manager      | Install | Add | Update | Global | Dev() | Delete |
| :----------------------: | :-----: | :-: | :----: | :----: | :---: | :----: |
|         yarn(js)         |   ✅    | ✅  |   ✅   |   ✅   |  ✅   |   ✅   |
|         npm(js)          |   ✅    | ✅  |   ✅   |   ✅   |  ✅   |   ✅   |
|         pnpm(js)         |   ✅    | ✅  |   ✅   |   ✅   |  ✅   |   ✅   |
|      bundler(ruby)       |   ✅    | ✅  |   ✅   |   ✅   |  ✅   |   ✅   |
| cargo - cargo-edit(rust) |   ✅    | ✅  |   ✅   |   ✅   |  ✅   |   ✅   |
|       pip(python)        |   ❌    | ❌  |   ❌   |   ❌   |  ❌   |   ❌   |
|      composer(php)       |   ✅    | ✅  |   ✅   |   ✅   |  ✅   |   ✅   |

# Contributing
You need (ts-node)[https://github.com/TypeStrong/ts-node]. Please, follow the instructions

```bash
yarn install
yarn run start
ts-node dist/index.js <command> <options> // e.g ts-node dist/index.js add react
```

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