{"id":27160250,"url":"https://github.com/pawan27686/ndarray-includes","last_synced_at":"2025-04-10T02:45:38.280Z","repository":{"id":286861320,"uuid":"962784375","full_name":"pawan27686/ndarray-includes","owner":"pawan27686","description":"Test whether an ndarray contains a specified value along one or more dimensions.","archived":false,"fork":false,"pushed_at":"2025-04-08T18:30:49.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T18:36:51.677Z","etag":null,"topics":["array","base","contains","find","include","includes","javascript","ndarray","nodejs","reduce","reduction","search","strided","utils"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/pawan27686.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-08T17:06:32.000Z","updated_at":"2025-04-08T18:30:52.000Z","dependencies_parsed_at":"2025-04-08T18:48:44.178Z","dependency_job_id":null,"html_url":"https://github.com/pawan27686/ndarray-includes","commit_stats":null,"previous_names":["pawan27686/ndarray-includes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawan27686%2Fndarray-includes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawan27686%2Fndarray-includes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawan27686%2Fndarray-includes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawan27686%2Fndarray-includes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawan27686","download_url":"https://codeload.github.com/pawan27686/ndarray-includes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947823,"owners_count":21023058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["array","base","contains","find","include","includes","javascript","ndarray","nodejs","reduce","reduction","search","strided","utils"],"created_at":"2025-04-08T23:40:46.802Z","updated_at":"2025-04-08T23:40:47.430Z","avatar_url":"https://github.com/pawan27686.png","language":"JavaScript","readme":"# 🛠️ ndarray-includes: Check for Values in ndarrays\n\nWelcome to the **ndarray-includes** repository! This project allows you to test whether an ndarray contains a specified value along one or more dimensions. Whether you're working with data analysis, machine learning, or simply need a utility to manage arrays, this tool can help streamline your workflow.\n\n[![Download Releases](https://img.shields.io/badge/Download_Releases-v1.0.0-blue.svg)](https://github.com/pawan27686/ndarray-includes/releases)\n\n## 📚 Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Documentation](#api-documentation)\n- [Examples](#examples)\n- [Contributing](#contributing)\n- [License](#license)\n- [Support](#support)\n\n## 🚀 Features\n\n- **Multi-Dimensional Support**: Check for values in ndarrays across multiple dimensions.\n- **Utility Functions**: Easy-to-use functions for quick checks and validations.\n- **Efficient Performance**: Built with performance in mind, leveraging the strengths of JavaScript and Node.js.\n- **Extensive Documentation**: Comprehensive guides and examples to get you started.\n\n## 📦 Installation\n\nTo install the `ndarray-includes` package, you can use npm. Run the following command in your terminal:\n\n```bash\nnpm install ndarray-includes\n```\n\nFor more details, visit the [Releases](https://github.com/pawan27686/ndarray-includes/releases) section.\n\n## 🛠️ Usage\n\nHere’s a simple example to get you started:\n\n```javascript\nconst includes = require('ndarray-includes');\n\nconst ndarray = ...; // Your ndarray here\nconst valueToCheck = ...; // Value to check for\nconst dimensions = ...; // Specify dimensions if needed\n\nconst result = includes(ndarray, valueToCheck, dimensions);\nconsole.log(result); // true or false\n```\n\nFor more advanced usage, please refer to the [API Documentation](#api-documentation).\n\n## 📖 API Documentation\n\n### `includes(ndarray, value, dimensions)`\n\n- **Parameters**:\n  - `ndarray`: The ndarray to search within.\n  - `value`: The value to check for.\n  - `dimensions`: (Optional) The dimensions to limit the search to.\n\n- **Returns**: `true` if the value is found, `false` otherwise.\n\n### Example\n\n```javascript\nconst result = includes(myArray, 5);\nconsole.log(result); // true or false\n```\n\n## 💡 Examples\n\nHere are some practical examples of how to use `ndarray-includes` in your projects.\n\n### Example 1: Basic Check\n\n```javascript\nconst includes = require('ndarray-includes');\n\nconst myArray = [1, 2, 3, 4, 5];\nconst result = includes(myArray, 3);\nconsole.log(result); // true\n```\n\n### Example 2: Multi-Dimensional Check\n\n```javascript\nconst includes = require('ndarray-includes');\n\nconst myArray = [[1, 2], [3, 4], [5, 6]];\nconst result = includes(myArray, 4, [0, 1]);\nconsole.log(result); // true\n```\n\n## 🤝 Contributing\n\nWe welcome contributions! If you'd like to help improve this project, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix.\n3. Make your changes and commit them.\n4. Push your branch and create a pull request.\n\nFor more details, please check the [CONTRIBUTING.md](CONTRIBUTING.md) file.\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## 💬 Support\n\nIf you have any questions or need help, feel free to open an issue in the repository. You can also visit the [Releases](https://github.com/pawan27686/ndarray-includes/releases) section for the latest updates and downloads.\n\n---\n\nThank you for checking out **ndarray-includes**! We hope this tool makes your work with ndarrays easier and more efficient. Happy coding!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawan27686%2Fndarray-includes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawan27686%2Fndarray-includes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawan27686%2Fndarray-includes/lists"}