{"_id":"@0leksanderv/file-tools","name":"@0leksanderv/file-tools","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@0leksanderv/file-tools","version":"1.0.0","description":"![JavaScript](https://img.shields.io/badge/JavaScript-ES6-yellow?style=for-the-badge&logo=javascript)\r ![Node](https://img.shields.io/badge/Node.js-green?style=for-the-badge&logo=node.js)\r ![Status](https://img.shields.io/badge/Status-Completed-success?st","license":"ISC","author":"","type":"commonjs","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","start":"node index.js"},"dependencies":{"express":"^5.2.1"},"gitHead":"5876f07ddf40f59ce1efa02dd806ff9da72866fb","_id":"@0leksanderv/file-tools@1.0.0","_nodeVersion":"24.13.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-0fcWi6ML5cOuH5vT1CCqLPwWxo9SXARS579QxpqMndBL+yPXYwcJ1ZPRJ+OiXmTzfX2l4TTJyOEn8JJ9WY4K9A==","shasum":"8e70aa6555e3c6b6c35abdb6e430e62c120d91f3","tarball":"https://registry.npmjs.org/@0leksanderv/file-tools/-/file-tools-1.0.0.tgz","fileCount":4,"unpackedSize":7495,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBwjEgH9t9DqtjQ9SCuKdMYOEUeeVb7QYfPOagqGPJBzAiAxT4bk6IjCYB516sP7oJ2Jg0bTpp91+cUN5z8N+l3pqg=="}]},"_npmUser":{"name":"0leksanderv","email":"ovolskuy@gmail.com"},"directories":{},"maintainers":[{"name":"0leksanderv","email":"ovolskuy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/file-tools_1.0.0_1773175518986_0.09704210889875142"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-10T20:45:18.925Z","1.0.0":"2026-03-10T20:45:19.117Z","modified":"2026-03-10T20:45:19.328Z"},"maintainers":[{"name":"0leksanderv","email":"ovolskuy@gmail.com"}],"description":"![JavaScript](https://img.shields.io/badge/JavaScript-ES6-yellow?style=for-the-badge&logo=javascript)\r ![Node](https://img.shields.io/badge/Node.js-green?style=for-the-badge&logo=node.js)\r ![Status](https://img.shields.io/badge/Status-Completed-success?st","license":"ISC","readme":"# File Library\r\n\r\n![JavaScript](https://img.shields.io/badge/JavaScript-ES6-yellow?style=for-the-badge&logo=javascript)\r\n![Node](https://img.shields.io/badge/Node.js-green?style=for-the-badge&logo=node.js)\r\n![Status](https://img.shields.io/badge/Status-Completed-success?style=for-the-badge)\r\n\r\nThis is my first Node.js project. I made a library that helps work with files and folders. It's simple, but useful for beginners.\r\n\r\n## Project Description\r\n\r\nThe project is called \"task1\". It uses Node.js and the Express library (though Express is not used in the code, but it's in the dependencies). The main goal is to show how to create your own library for file operations.\r\n\r\nThe library is in the `File_Library.js` file and contains functions for:\r\n- Creating files\r\n- Reading files\r\n- Appending text to files\r\n- Checking if files exist\r\n- Creating folders\r\n- Deleting files and folders\r\n\r\n## Project Structure\r\n\r\n```\r\ntask1/\r\n├── File_Library.js    # Here are all the library functions\r\n├── index.js           # Main file that imports the library\r\n├── package.json       # Project configuration\r\n└── README.md          # This file with description\r\n```\r\n\r\n## Library Functions\r\n\r\nHere is what my library can do:\r\n\r\n### Working with files:\r\n- `createFile(filename)` - creates a new file\r\n- `readFile(filename)` - reads the file content\r\n- `appendFile(filename, text)` - adds text to the file\r\n- `fileExists(filename)` - checks if the file exists\r\n\r\n### Working with folders:\r\n- `newFolder(foldername)` - creates a new folder\r\n- `delFolder(foldername)` - deletes a folder\r\n\r\n### Deletion:\r\n- `delFile(filename)` - deletes a file\r\n- `deleteFileAndFolder(filename, foldername)` - deletes the file and then the folder\r\n\r\nAll functions print messages to the console about success or error.\r\n\r\n## How to Run on Your PC\r\n\r\nTo run this project on your computer:\r\n\r\n1. **Install Node.js** - if you don't have it, download from [nodejs.org](https://nodejs.org/)\r\n\r\n2. **Clone or download the project** - copy the files to a folder on your computer\r\n\r\n3. **Open terminal** - go to the project folder (where `package.json` is)\r\n\r\n4. **Install dependencies**:\r\n   ```\r\n   npm install\r\n   ```\r\n   This will install Express (though it's not used, but it's in package.json)\r\n\r\n5. **Run the project**:\r\n   ```\r\n   npm start\r\n   ```\r\n   or\r\n   ```\r\n   node index.js\r\n   ```\r\n\r\nAfter running, you will see messages in the console if something works.\r\n\r\n## Notes\r\n\r\nThis is my first project, so the code might not be perfect. If you find bugs or want to improve, write to me!","readmeFilename":"README.md","_rev":"1-28113142f266d3e91aa94f2a10ddfdb8"}