# @roland1993/sum-file

> A simple CLI which sums numbers located in txt files

Latest version **1.0.0** (published 2021-09-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @roland1993/sum-file
pnpm add @roland1993/sum-file
yarn add @roland1993/sum-file
bun add @roland1993/sum-file
```

Provides the command `sumfile`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-09-28 |
| First published | 2021-09-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Roland Doda |
| Maintainers | roland1993 |
| Keywords | cli, sum numbers, number in files |

## Links

- npm: https://www.npmjs.com/package/@roland1993/sum-file
- npm.io page: https://npm.io/package/@roland1993/sum-file

## Dependencies (1)

- [esm](https://npm.io/package/esm.md) ^3.2.25

## 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

- 1.0.0 (latest) — 2021-09-28
- 0.1.0 — 2021-09-25
- 0.0.2 — 2021-09-25

## README

# sumfile ➕📡


### Introduction

A simple tool to output the sum of numbers located in a file line by line


### Installation

```shell
npm install -g @roland1993/sum-file
```

### Usage with example

Say you have 3 files:

A.txt:
```text
3
19
B.txt
50
```


B.txt:
```text
C.txt
27
```


C.txt:
```text
10
2
```

**Then in your terminal you run `sumfile A.txt`**

The output of the command above will be:

```text
A.txt - 111
B.txt - 39
C.txt - 12
```

### Downloading and running it with node

1. Download the source code
2. Open the terminal in the project's root
3. Run `npm install`
4. Run `node -r esm src path/to/a/file`

For example: 

```shell
node -r esm src C:/Users/username/Desktop/TEST/a.txt
```

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