{"id":13493010,"url":"https://github.com/antonioru/deep-waters","last_synced_at":"2025-04-09T07:08:27.837Z","repository":{"id":42866788,"uuid":"258799930","full_name":"antonioru/deep-waters","owner":"antonioru","description":"🔥Deep Waters is an easy-to-compose functional validation system for javascript developers 🔥","archived":false,"fork":false,"pushed_at":"2023-01-06T04:26:32.000Z","size":1867,"stargazers_count":201,"open_issues_count":16,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T02:35:14.373Z","etag":null,"topics":["deep-waters","functional","functional-programming","javascript","nodejs","validation","validation-library","validators"],"latest_commit_sha":null,"homepage":"https://antonioru.gitbook.io/deep-waters/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antonioru.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":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-25T14:46:54.000Z","updated_at":"2025-01-04T07:37:16.000Z","dependencies_parsed_at":"2023-02-05T07:31:30.201Z","dependency_job_id":null,"html_url":"https://github.com/antonioru/deep-waters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonioru%2Fdeep-waters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonioru%2Fdeep-waters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonioru%2Fdeep-waters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonioru%2Fdeep-waters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonioru","download_url":"https://codeload.github.com/antonioru/deep-waters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994121,"owners_count":21030050,"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":["deep-waters","functional","functional-programming","javascript","nodejs","validation","validation-library","validators"],"created_at":"2024-07-31T19:01:11.305Z","updated_at":"2025-04-09T07:08:27.819Z","avatar_url":"https://github.com/antonioru.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Validation"],"sub_categories":["Reactive Programming"],"readme":"[![Build Status](https://travis-ci.org/antonioru/deep-waters.svg?branch=master)](https://travis-ci.org/antonioru/deep-waters)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![npm](https://img.shields.io/npm/v/deep-waters)\n![GitHub stars](https://img.shields.io/github/stars/antonioru/deep-waters?style=social)\n\n# Deep waters\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg src=\"./logo.png\" alt=\"deep-waters\" width=\"280px\" /\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv\u003e\n  \u003ch3 align=\"center\"\u003e\n    An easy-to-compose functional validation system for javascript developers\n    \u003cbr /\u003e\n    \u003ch4 align=\"center\"\u003e\n        \u003ca href=\"https://antonioru.gitbook.io/deep-waters/\" target=\"_blank\"\u003e\n            📖 Documentation\n        \u003c/a\u003e\n    \u003c/h4\u003e\n  \u003c/h3\u003e\n\u003c/div\u003e\n\n![Usage example](./usage_example.png)\n\n## 💡 What is Deep Waters?\n\n\nAn easy-to-compose functional validation system for javascript developers\n\nIt allows to easily create custom and reusable validators from the pre-existing ones by using a functional approach \nand the composition principle. \n\n\n\u003ch4 align=\"center\"\u003e\n    \u003ca href=\"https://antonioru.gitbook.io/deep-waters/\" target=\"_blank\"\u003e\n        📖 Documentation\n    \u003c/a\u003e\n\u003c/h4\u003e\n\n\n## ☕️ Features\n\n* Full functional\n* Strict types validation based on `Object.prototype.toString` instead of `typeof` to avoid unexpected behaviours\n* Tiny and lightweight\n* Extremely modular\n* Concise API\n\n\n\n## 🕺 Installation\n\nYou can install it by using NPM:\n\n```bash\nnpm install deep-waters\n```\n\nDeep Waters exports its modules as CommonJS modules, so that each one can be easily imported individually, \nas the following:\n\n```js\nconst compose = require('deep-waters/compose');\nconst minLength = require('deep-waters/minLength');\nconst ofUniqueItems = require('deep-waters/ofUniqueItems'); \n\nconst arrayValidator = compose(minLength(3), ofUniqueItems);  \n\narrayValidator([1,2,3,4]); // =\u003e true;\n```\n\nAlternatively, it's possible to import all the modules at once with the same result.\n\n```js\nconst DW = require('deep-waters');\n\nconst arrayValidator = DW.compose(DW.minLength(3), DW.ofUniqueItems);  \n\narrayValidator([1,2,3,4]); // =\u003e true;\n```\n\n\u003ch4 align=\"center\"\u003e\n    \u003ca href=\"https://antonioru.gitbook.io/deep-waters/\" target=\"_blank\"\u003e\n        📖 Documentation\n    \u003c/a\u003e\n\u003c/h4\u003e\n\n\n## 🔰 Licence\n\nDeep Waters is released under the [MIT license](./LICENSE.md) \u0026 supports modern environments.\n\n\n## 🧑‍🤝‍🧑 Contributing\n\nContributions are very welcome and wanted. \n\nTo submit your custom hook, please make sure your read our [CONTRIBUTING](./CONTRIBUTING.md) guidelines.\n\n**Before submitting** a new merge request, please make sure:\n\n1. You have updated the package.json version and reported your changes into the [CHANGELOG](./CHANGELOG.md) file\n2. make sure you run `npm test` before submitting your merge request.\n3. In case you're creating a new validator please make sure it is well documented and tested\n\n---\n\nIcon made by [Freepik](https://www.flaticon.com/authors/freepik) from [www.freepik.com](http://www.freepik.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonioru%2Fdeep-waters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonioru%2Fdeep-waters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonioru%2Fdeep-waters/lists"}