{"id":28169253,"url":"https://github.com/vikhram-s/indianconstitution-js","last_synced_at":"2026-02-15T05:33:03.597Z","repository":{"id":283308995,"uuid":"951166604","full_name":"Vikhram-S/IndianConstitution-js","owner":"Vikhram-S","description":"A robust JavaScript library designed to provide seamless access to the Constitution of India. This module enables developers to retrieve articles, explore summaries, perform keyword searches, and more, leveraging a comprehensive dataset embedded within the IndianConstitution class.","archived":false,"fork":false,"pushed_at":"2026-01-13T07:00:49.000Z","size":283,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T10:22:01.750Z","etag":null,"topics":["india","indian-constitution","indian-language","javascript","json","law","legal","natural-language-processing","nodejs","npm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@vikhram-s/indianconstitution-js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vikhram-S.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-19T09:06:56.000Z","updated_at":"2026-01-13T07:00:53.000Z","dependencies_parsed_at":"2026-01-13T09:12:44.295Z","dependency_job_id":null,"html_url":"https://github.com/Vikhram-S/IndianConstitution-js","commit_stats":null,"previous_names":["vikhram-s/indianconstitution-js"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Vikhram-S/IndianConstitution-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikhram-S%2FIndianConstitution-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikhram-S%2FIndianConstitution-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikhram-S%2FIndianConstitution-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikhram-S%2FIndianConstitution-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vikhram-S","download_url":"https://codeload.github.com/Vikhram-S/IndianConstitution-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikhram-S%2FIndianConstitution-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29470636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T05:26:30.465Z","status":"ssl_error","status_checked_at":"2026-02-15T05:26:21.858Z","response_time":118,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["india","indian-constitution","indian-language","javascript","json","law","legal","natural-language-processing","nodejs","npm"],"created_at":"2025-05-15T16:16:16.997Z","updated_at":"2026-02-15T05:33:03.591Z","avatar_url":"https://github.com/Vikhram-S.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @vikhram-s/indianconstitution-js (v0.2.0)\n\nA robust JavaScript library designed to provide seamless access to the Constitution of India. This module enables developers to retrieve articles, explore summaries, perform keyword searches, and more, leveraging a comprehensive dataset embedded within the `IndianConstitution` class.\n\n[![npm version](https://img.shields.io/npm/v/@vikhram-s/indianconstitution-js?label=npm)](https://www.npmjs.com/package/@vikhram-s/indianconstitution-js) [![License](https://img.shields.io/npm/l/@vikhram-s/indianconstitution-js?label=License\u0026color=red)](https://github.com/Vikhram-S/IndianConstitution-js/blob/main/LICENSE) [![Maintained](https://img.shields.io/maintenance/yes/2026?label=Maintained)](https://github.com/Vikhram-S/IndianConstitution-js) [![Node.js](https://img.shields.io/node/v/@vikhram-s/indianconstitution-js?label=Node.js)](https://nodejs.org/) [![Downloads](https://img.shields.io/npm/dt/@vikhram-s/indianconstitution-js?label=Downloads\u0026style=plastic)](https://www.npmjs.com/package/@vikhram-s/indianconstitution-js) [![GitHub Issues](https://img.shields.io/github/issues/Vikhram-S/IndianConstitution-js?label=Issues)](https://github.com/Vikhram-S/IndianConstitution-js/issues)\n\n## Installation\n\nInstall the library via npm to integrate it into your Node.js project:\n\n```bash\nnpm install @vikhram-s/indianconstitution-js\n```\n\n## Features\n\n- **Comprehensive Access**: Retrieve the full text of the Constitution of India, including the Preamble and individual articles.\n- **Article Retrieval**: Fetch detailed information or concise summaries for any article by its number.\n- **Search Capabilities**: Perform keyword-based searches across article content or filter by titles.\n- **Utility Functions**: Count total articles and explore the dataset with ease.\n\n## Usage\n\nGet started with @vikhram-s/indianconstitution-js using these examples:\n\n### Quick Example\n\n```javascript\nconst { getArticle, IndianConstitution } = require('@vikhram-s/indianconstitution-js');\n\n// Fetch an article directly\nconsole.log(getArticle(14)); // \"Article 14: Equality before law...\"\n\n// Use the class for advanced access\nconst india = new IndianConstitution();\nconsole.log(india.preamble()); // \"We, the people of India...\"\n```\n\n### Detailed Node.js Example\n\n```javascript\nconst { IndianConstitution } = require('@vikhram-s/indianconstitution-js');\n\n// Instantiate the class\nconst india = new IndianConstitution();\n\n// Access the Preamble\nconsole.log(india.preamble());\n\n// Retrieve article details\nconsole.log(india.getArticle(14)); // \"Article 14: Equality before law...\"\n\n// List all articles\nconsole.log(india.articlesList());\n\n// Search by keyword\nconsole.log(india.searchKeyword('equality'));\n\n// Get an article summary\nconsole.log(india.articleSummary(21)); // \"Article 21 - Protection of life...\"\n\n// Count total articles\nconsole.log(india.countArticles());\n\n// Search by title keyword\nconsole.log(india.searchByTitle('Fundamental'));\n```\n\n## API Reference\n\n| Function | Description |\n|----------|-------------|\n| `preamble()` | Returns the Preamble of the Constitution of India. |\n| `getArticle(number)` | Retrieves full details of the specified article by number. |\n| `articlesList()` | Lists all articles with their titles in a readable format. |\n| `searchKeyword(word)` | Searches for a keyword across article titles and descriptions. |\n| `articleSummary(num)` | Provides a concise summary of the specified article. |\n| `countArticles()` | Returns the total number of articles in the Constitution. |\n| `searchByTitle(title)` | Finds articles matching a keyword in their titles. |\n\n## Development\n\nThis library is actively maintained. We welcome contributions, bug reports, and feature suggestions via GitHub Issues. For usage terms, refer to the LICENSE file.\n\n## License\n\nThis project is licensed under the Apache License 2.0. See the LICENSE file for full details.\n\n## Data Source\n\nThe Constitution data is meticulously compiled from publicly available, authoritative sources to ensure accuracy and reliability.\n\n## Developer Information\n\n- **Author**: Vikhram S  \n- **Email**: [vikhrams@saveetha.ac.in](mailto:vikhrams@saveetha.ac.in)  \n- **Python Companion**: IndianConstitution  \n\n## Copyright\n\n© 2026 Vikhram S. All rights reserved.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikhram-s%2Findianconstitution-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikhram-s%2Findianconstitution-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikhram-s%2Findianconstitution-js/lists"}