1.0.0 • Published 4 years ago

cross-cat v1.0.0

Weekly downloads
551
License
ISC
Repository
github
Last release
4 years ago

Build Tests Code quality Coverage Release date Docs License Testing Node NPM Minified size Style Chat commander get-stdin

cross-cat

Cross-platform cat command.

About

A JavaScript package, behaving exactly as Linux cat command, supporting all the options such as line numbering. Written in TypeScript natively.

Prerequisites

Installation

npm install cross-cat --global

Usage

cat <filename>

Example

cat my_awesome_file.txt

Advanced usage

CommandExplanation
cross-cat <filename>For example, in case of PowerShell, ensure that this module is run instead of cat built-in alias to Get-Content
npx cross-cat <filename>To run without installation
cross-cat --helpTo get all the available options

Escaping spaces in package.json scripts

"scripts": {
	"show:awesome": "cross-cat \"/awesome folder/awesome filename\""
}

Spaces and npx

Currently runs via npx of locally installed package cannot process filenames with spaces correctly due to npm behavior. Workaround:

node node_modules/cross-cat/src/cross-cat.js <filename>

Spaces support

+ : Working

= : Non applicable

- : Not working (workaround above)

Command usedGlobalLocalNot installed
cat+==
cat (from script)++=
cross-cat+==
cross-cat (from script)++=
npx cross-cat--+
npx cross-cat (from script)--+
node cross-cat.js++=
1.1.0

4 years ago

1.0.0

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago