Releases: Nekonepan/Employee-Data-Application-Project-JavaScript-based-node.js-
Releases · Nekonepan/Employee-Data-Application-Project-JavaScript-based-node.js-
v2.0.0 - JSON-based Data Storage & Major Enhancements
Major Release v2.0.0
This version introduces a complete migration from TXT format to JSON storage,
making the application more structured, reliable, and extensible.
Highlights:
- Switched data persistence from TXT (
|separator) to JSON (array of objects) - Modularized file read/write functions (
read_data,write_data) - Improved backup system (
backup/data-karyawan-backup.json) - Unified log system with timestamp (
logs/deleted-data.json) - Bulk input supported with cancel option (0 = cancel input)
- Enhanced editing flow with summary table preview
- Consistent code style and error handling with
try/catch
Migration Notes:
- Backup your existing TXT data if necessary
- Start fresh with
data-karyawan.jsonOR manually convert TXT to JSON - Ensure
backup/andlogs/folders exist in the project directory
Changelog:
Added
- Support for JSON-based storage (data-karyawan.json)
- Modularized functions: read_data() and write_data()
- Bulk data input with cancel option (0 = cancel input)
- Editing flow with summary preview table
- Automatic backup system (backup/data-karyawan-backup.json)
- Unified log system with timestamp (logs/deleted-data.json)
Changed
- Switched from TXT format (| separator) to JSON (array of objects)
- Sorting, deleting, and restoring now use JSON files
- More consistent code style (braces, indentation, naming)
- Better error handling with try/catch when reading/writing files
Removed
- Old TXT-based storage (data-karyawan.txt)
- Separate log files per delete (now unified into one JSON log file)
Breaking Changes
- TXT files are no longer supported, you must migrate to JSON
- Data from previous versions needs to be manually converted
What's Changed
- Add initial JSON files for employee data and backup; log deleted employee records by @Nekonepan in #21
Full Changelog: v1.0.0...v2.0.0
Initial Release - Node.js CLI Employee Manager
First stable release of the Employee Data Management CLI App, rewritten from C++ into Node.js!
This version includes a full set of features for managing employee data using your terminal:
Features
- Add multiple employee records at once
- Edit existing employee data interactively
- Search by ID or Name (supports partial match)
- Sort data ascending or descending by ID
- Save with confirmation prompt
- Input validation (non-empty, numeric phone number, unique ID)
- Data stored persistently in
data-karyawan.txt - Modular structure with
inquirerandprompt-sync
Files
main.js- main program filedata-karyawan.txt- data storage filelogs/- contains deleted/backup data logsbackup/- optional folder for manual backups
Origin
This project was refactored from my original C++ project:
data-karyawan-alpro.cppdata-karyawan-alpro-array2D.cpp
Notes
This release is intended as a complete learning project.
Feel free to fork, modify, or extend it with more advanced features.
Built with:
- Node.js
- Inquirer
- Prompt-sync
Licensed under MIT.