# newsort

> A unix-like command-line utility sort

Latest version **0.0.14** (published 2019-01-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install newsort
pnpm add newsort
yarn add newsort
bun add newsort
```

Provides the command `newsort`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2019-01-25 |
| First published | 2019-01-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sunny |
| Maintainers | sunnihith |

## Links

- npm: https://www.npmjs.com/package/newsort
- npm.io page: https://npm.io/package/newsort

## Dependencies (3)

- [co](https://npm.io/package/co.md) ^4.6.0
- [co-prompt](https://npm.io/package/co-prompt.md) ^1.0.0
- [commander](https://npm.io/package/commander.md) ^2.19.0

## Recent versions

- 0.0.14 (latest) — 2019-01-25
- 0.0.13 — 2019-01-25

## README

### Installation

newsort requires [Node.js](https://nodejs.org/) v4+ to run.

```sh
$ npm install -g newsort
```


### Use

create a file name zipcode and paste in following:<br>
Joe   56789<br>
Sam   45678<br>
Bob   34567<br>
Wendy 23456<br>
Adam  12345<br>

Try if the file is created properly
```sh
$ cat zipcode
```
Joe   56789<br>
Sam   45678<br>
Bob   34567<br>
Wendy 23456<br>
Adam  12345<br>


Get the sorted result
```sh
$ newsort zipcode
```
Adam  12345<br>
Bob   34567<br>
Joe   56789<br>
Sam   45678<br>
Wendy 23456<br>


The -r option just reverses the order of the sort
```sh
$ newsort zipcode -r
```
Wendy 23456<br>
Sam   45678<br>
Joe   56789<br>
Bob   34567<br>
Adam  12345<br>


Use the -k option to sort on a certain column. For example, use "-k 2" to sort on the second column.
```sh
$ newsort zipcode -k 2
```
Adam  12345<br>
Wendy 23456<br>
Bob   34567<br>
Sam   45678<br>
Joe   56789<br>

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