# node-echo

> a shell like echo for node.js

Latest version **0.1.1** (published 2014-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-echo
pnpm add node-echo
yarn add node-echo
bun add node-echo
```

## 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.1.1 |
| Published | 2014-08-15 |
| First published | 2013-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Treri |
| Maintainers | jeremial, treri |
| Keywords | echo, shell, node |

## Links

- npm: https://www.npmjs.com/package/node-echo
- Repository: https://github.com/Treri/node-echo
- Issues: https://github.com/Treri/node-echo/issues
- npm.io page: https://npm.io/package/node-echo

## Dependencies (3)

- [mkdirp](https://npm.io/package/mkdirp.md) ~0.3.5
- [jistype](https://npm.io/package/jistype.md) 0.0.3
- [coffee-script](https://npm.io/package/coffee-script.md) ~1.7.1

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-08-15
- 0.1.0 — 2014-08-15
- 0.0.6 — 2014-03-27
- 0.0.5 — 2014-01-15
- 0.0.4 — 2013-12-29
- 0.0.3 — 2013-12-29
- 0.0.2 — 2013-12-28
- 0.0.1 — 2013-12-26

## README

# node-echo [![NPM version](https://badge.fury.io/js/node-echo.png)](http://badge.fury.io/js/node-echo) [![Build Status](https://travis-ci.org/Treri/node-echo.png)](https://travis-ci.org/Treri/node-echo) [![Dependencies Status](https://david-dm.org/Treri/node-echo.png)](https://david-dm.org/Treri/node-echo)

A shell like echo for node.js with sync and async method

[![node-echo](https://nodei.co/npm/node-echo.png?compact=true)](https://nodei.co/npm/node-echo)

## Usage:

    var echo = require('node-echo');
    echo(args...);
    // echo.sync(args...);

### to `stdout` or `stderr`

##### echo(anything[, echo.STDOUT|STDERR[, callback]])
echo anything to `stdout` or `stderr`, with or without a callback

##### echo.sync(anything[, echo.STDOUT|STDERR])
sync version, echo anything to `stdout` or `stderr`

### to local file

##### echo(anything, flag, fileName, callback)
echo anything to localfile.

flag can be `>` or `>>`, and its default to `>>`, so echo default likes shell's
`echo 'content' >> file`

##### echo.sync(anything, flag, fileName)
sync version, echo anything to localfile.

flag can be `>` or `>>`, and its default to `>>`, so echo default likes shell's
`echo 'content' >> file`

## Test:

    npm install
    npm test

## License

The MIT License (MIT)

Copyright (c) 2013 Treri treri.liu@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

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