1.1.6 โ€ข Published 2 months ago

read-file-input v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Allows you to capture user input by opening a text editor instead of stdin. Manually passing large amounts of data through stdin is cumbersome and not widely supported as it depends on the terminal emulator.

This module creates a temporary file and opens it with the configured text editor. When the user saves the file and quits the editor, we read back the file while optionally deleting it.

Since most text editors support UTF-8, any emojis and special characters will be handled safely instead of replying on the terminal.

Tweet @, I would love to know your opinion & experience on this project ๐Ÿ˜

โœจ Features

  1. Cross platform
  2. Supports graphical & terminal editors
  3. Prefills the file with content

๐Ÿ’ฟ Installation

npm i <!-- name -->

๐Ÿš€ Quick Start

After <!-- name --> as a dependency using the above command, you can use it in the following way:

<!-- example -->

๐Ÿงช Configuration

<!-- config -->

๐Ÿ’ป Building & Dev Setup

You need to be at least on Node.js v or above and follow the below instructions to build the project ๐Ÿ‘‡

  • STEP 1๏ธโƒฃ Clone this project
  • STEP 2๏ธโƒฃ Run npm install to get all dependencies
  • STEP 3๏ธโƒฃ To build the TypeScript project run npm run build

Now you should have a dist folder in the project directory.

โšก Running Examples

Once you have successfully built the project, to run a basic example ๐Ÿ‘‡

node examples/basic.js

Checkout other examples to know more on different use cases and configuration of options of read-file-input.

๐Ÿ› ๏ธ Writing Code

This project follows Vasanth's Commit Style for commit messages.

๐Ÿ“ฐ License

The project is released under the MIT license(https://github.com///blob/main/LICENSE.md). Developed & maintained By Vasanth Srivatsa. Copyright ยฉ Vasanth Developer.

vsnth.dev ย ยทย  YouTube @vasanthdeveloper ย ยทย  Twitter @ ย ยทย  Discord Vasanth Developer

1.1.6

2 months ago

1.1.5

1 year ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago