{"id":19241813,"url":"https://github.com/sanjaraiy/nodejs_work","last_synced_at":"2026-05-14T22:04:54.273Z","repository":{"id":236480624,"uuid":"672599110","full_name":"sanjaraiy/nodejs_work","owner":"sanjaraiy","description":"📂🚀 This repository explores the fs, os, http, and events modules in Node.js. Dive in and master these core functionalities! 💻📊","archived":false,"fork":false,"pushed_at":"2024-06-23T02:26:17.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T14:35:09.044Z","etag":null,"topics":["crud","events","http","javascript","nodejs","operating-system"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanjaraiy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-30T16:19:48.000Z","updated_at":"2024-06-23T02:26:20.000Z","dependencies_parsed_at":"2024-04-27T10:39:40.624Z","dependency_job_id":"9c300771-fda4-4b4c-a1a3-8f20c57e1819","html_url":"https://github.com/sanjaraiy/nodejs_work","commit_stats":null,"previous_names":["sanjaraiy/nodejs_work"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sanjaraiy/nodejs_work","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjaraiy%2Fnodejs_work","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjaraiy%2Fnodejs_work/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjaraiy%2Fnodejs_work/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjaraiy%2Fnodejs_work/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanjaraiy","download_url":"https://codeload.github.com/sanjaraiy/nodejs_work/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjaraiy%2Fnodejs_work/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33045149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crud","events","http","javascript","nodejs","operating-system"],"created_at":"2024-11-09T17:12:37.585Z","updated_at":"2026-05-14T22:04:54.251Z","avatar_url":"https://github.com/sanjaraiy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Modules Exploration 🚀\nWelcome to the Node.js Modules Exploration repository! This repository is dedicated to understanding and implementing the core modules in Node.js, including `fs`, `os`, `http`, and `events`. Dive in and master these essential functionalities of Node.js! 💻📊\n\n## Introduction\nThis repository is your guide to mastering some of the most important modules in Node.js. Each module is covered with examples and explanations to help you understand their usage and applications in real-world scenarios.\n\n## Modules Covered\n- **File System (`fs`)**: Learn how to work with the file system to read, write, and manipulate files.\n- **Operating System (`os`)**: Get insights into the operating system-related information and methods.\n- **HTTP (`http`)**: Understand how to create HTTP servers and handle requests and responses.\n- **Events (`events`)**: Explore the events module to handle asynchronous events in your applications.\n\n## Installation\nTo get started, clone the repository and install the necessary dependencies:\n```bash\ngit clone https://github.com/sanjaraiy/nodejs_work.git\ncd nodejs_work\nnpm install\n```\n\n## Usage\nEach module has its own directory with detailed examples and explanations. Navigate to the desired module and run the example scripts:\n```bash\ncd fs\nnode example.js\n```\n## Examples\n### File System (fs)\nExample of reading a file:\n```javascript\nconst fs = require('fs');\n\nfs.readFile('example.txt', 'utf8', (err, data) =\u003e {\n  if (err) throw err;\n  console.log(data);\n});\n```\n### Operating System (os)\nExample of getting OS information:\n```javascript\nconst os = require('os');\n\nconsole.log('Platform:', os.platform());\nconsole.log('CPU Architecture:', os.arch());\nconsole.log('Total Memory:', os.totalmem());\n```\n\n### HTTP (http)\nExample of creating an HTTP server:\n```javascript\nconst http = require('http');\n\nconst server = http.createServer((req, res) =\u003e {\n  res.statusCode = 200;\n  res.setHeader('Content-Type', 'text/plain');\n  res.end('Hello, World!\\n');\n});\n\nserver.listen(3000, () =\u003e {\n  console.log('Server running at http://localhost:3000/');\n});\n```\n\n### Events (events)\nExample of using EventEmitter:\n```javascript\nconst EventEmitter = require('events');\nconst eventEmitter = new EventEmitter();\neventEmitter.on('start', () =\u003e {\n  console.log('Started!');\n});\n\neventEmitter.emit('start');\n```\n\n## Contributing\nWe welcome contributions! Please read our content and to get started.\n\nHappy coding! 🎉✨\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjaraiy%2Fnodejs_work","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanjaraiy%2Fnodejs_work","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjaraiy%2Fnodejs_work/lists"}