From 5e29ef46ff3c560251191c4582b4cb84a41fcd2c Mon Sep 17 00:00:00 2001 From: mikeg Date: Wed, 16 Dec 2020 17:26:33 +0200 Subject: [PATCH] Changed Project Name --- README.md | 5 ++--- package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fa7b249..1aaa968 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# valify +# valimo A validation library inspired by [FluentValidation](https://github.com/FluentValidation/FluentValidation) of C# and [fluentvalidation-ts](https://github.com/AlexJPotter/fluentvalidation-ts) of [@AlexJPotter](https://github.com/AlexJPotter) @@ -25,8 +25,7 @@ class PersonValidator extends AbstractValidator { this.ruleFor(x => x.name) .isNotEmpty() // Checks if the name is not empty .withMessage("NAMES! NAMES! GIVE ME NAMES") // A (little too dramatic) custom message - .hasMinLengthOf(4) - .withMessage("Custom messages for every rule!"); + .hasMinLengthOf(4); // Or you can opt out and use the default ones instead } } ``` diff --git a/package.json b/package.json index 74e576b..cb8664e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "valify", + "name": "valimo", "version": "0.0.1", "description": "A fluent validation library, inspired by FluentValidation of .Net", "main": "dist/index.js",