New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cross-cat

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-cat

A cross platform cat command

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
3
Created
Source

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++=

Keywords

cat

FAQs

Package last updated on 22 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts