Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xenoswarlocks/file-name-conversion-tool
This Node.js script reads a text file containing names in "First Last" format, converts them into "firstname.lastname" format, adds a domain, and saves the converted names to a new text file.
https://github.com/xenoswarlocks/file-name-conversion-tool
Last synced: 12 days ago
JSON representation
This Node.js script reads a text file containing names in "First Last" format, converts them into "firstname.lastname" format, adds a domain, and saves the converted names to a new text file.
- Host: GitHub
- URL: https://github.com/xenoswarlocks/file-name-conversion-tool
- Owner: XenosWarlocks
- Created: 2024-04-19T17:41:28.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-19T17:48:54.000Z (9 months ago)
- Last Synced: 2024-04-19T18:47:10.189Z (9 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File-Name-Conversion-Tool
This Node.js script reads a text file containing names in "First Last" format, converts them into "firstname.lastname" format, adds a domain, and saves the converted names to a new text file.# Usage:
1. Ensure you have Node.js installed on your system.
2. Clone this repository to your local machine.
3. Navigate to the directory containing the script.
4. Create a text file named `join.txt` containing names in the format "First Last", with each name on a new line.
5. Run the script using node `index.js`.
6. Check the generated file `converted_names.txt` for the converted names.# Notes:
- Ensure the input file (`join.txt`) exists and is correctly formatted.
- The script assumes each name in `join.txt` is on a separate line.
- Adjust the domain (`@ba.com`) as needed for your use case.
- Error handling is included for file operations.