A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?
This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?
Simply import
it and use the included valid?
function:
import "validator"!
+Validator • Arturo Packager A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
valid?.url "https://arturo-lang.io"
; => true
@@ -9,7 +9,7 @@
; => true
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
valid? str :string :block
-
AttributesOption Description email verify e-mail address url verify URL
Returns- :logical
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies. A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
+Validator • Arturo Packager A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
valid?.url "https://arturo-lang.io"
; => true
@@ -9,7 +9,7 @@
; => true
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
valid? str :string :block
-
AttributesOption Related parameters Description email verify e-mail address ip verify IP addresses .v4 look for IPv4 addresses only .v6 look for IPv6 addresses only url verify URL
Returns- :logical
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies. A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
+Validator • Arturo Packager A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
valid?.url "https://arturo-lang.io"
; => true
@@ -9,7 +9,7 @@
; => true
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
valid? str :string :block
-
AttributesOption Related parameters Description email verify e-mail address floating test if string contains a parsable floating-point value integer test if string contains a parsable integer value ip verify IP addresses .v4 look for IPv4 addresses only .v6 look for IPv6 addresses only url verify URL
Returns- :logical
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies. A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
+Validator • Arturo Packager A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
valid?.url "https://arturo-lang.io"
; => true
@@ -9,7 +9,7 @@
; => true
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
valid? str :string :block
-
AttributesOption Related parameters Description base58 check base-58 encoding email verify e-mail address floating test if string contains a parsable floating-point value integer test if string contains a parsable integer value ip verify IP addresses .v4 look for IPv4 addresses only .v6 look for IPv6 addresses only url verify URL
Returns- :logical
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies. A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
+Validator • Arturo Packager A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
valid?.url "https://arturo-lang.io"
; => true
@@ -9,7 +9,7 @@
; => true
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
valid? str :string :block
-
AttributesOption Related parameters Description base58 check base-58 encoding email verify e-mail address floating test if string contains a parsable floating-point value integer test if string contains a parsable integer value ip verify IP addresses .v4 look for IPv4 addresses only .v6 look for IPv6 addresses only isbn verify ISBN code .10 check for ISBN-10 codes only .13 check for ISBN-13 codes only url verify URL
Returns- :logical
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies. A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
+Validator • Arturo Packager A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
valid?.url "https://arturo-lang.io"
; => true
@@ -9,7 +9,7 @@
; => true
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
valid? str :string :block
-
AttributesOption Related parameters Description base58 check base-58 encoding email verify e-mail address floating test if string contains a parsable floating-point value integer test if string contains a parsable integer value iban verify IBAN (International Bank Account Number) ip verify IP addresses .v4 look for IPv4 addresses only .v6 look for IPv6 addresses only isbn verify ISBN code .10 check for ISBN-10 codes only .13 check for ISBN-13 codes only url verify URL
Returns- :logical
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies. A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
+Validator • Arturo Packager A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
valid?.url "https://arturo-lang.io"
; => true
@@ -18,7 +18,7 @@
; => true
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
valid? str :string :block
-
AttributesOption Related parameters Description base58 check base-58 encoding card check credit card number email verify e-mail address floating test if string contains a parsable floating-point value integer test if string contains a parsable integer value iban verify IBAN (International Bank Account Number) ip verify IP addresses .v4 look for IPv4 addresses only .v6 look for IPv6 addresses only isbn verify ISBN code .10 check for ISBN-10 codes only .13 check for ISBN-13 codes only url verify URL
Returns- :logical
ContributingValidator.art has been designed with flexibility and extensibility in mind.
- Have you noticed an error and want to fix sth?
- Do you want to add more tests to a given validator to make it more robust?
- Do you want to add a new one (Have a look into the sample validator!)
You are 100% welcome! Just make a PR and I'll be more than glad to merge it! 馃殌
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies. Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
+Validator • Arturo Packager A batteries-included, supercharged & customizable, string validation library for Arturo
Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
valid?.url "https://arturo-lang.io"
; => true
@@ -18,15 +18,15 @@
; => true
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
valid? str :string :block
-
AttributesOption Related parameters Description base58 check base-58 encoding card check credit card number email verify e-mail address floating test if string contains a parsable floating-point value integer test if string contains a parsable integer value iban verify IBAN (International Bank Account Number) ip verify IP addresses .v4 look for IPv4 addresses only .v6 look for IPv6 addresses only isbn verify ISBN code .10 check for ISBN-10 codes only .13 check for ISBN-13 codes only json test if string contains valid JSON url verify URL
Returns- :logical
ContributingValidator.art has been designed with flexibility and extensibility in mind.
- Have you noticed an error and want to fix sth?
- Do you want to add more tests to a given validator to make it more robust?
- Do you want to add a new one (Have a look into the sample validator!)
You are 100% welcome! Just make a PR and I'll be more than glad to merge it! 馃殌
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies. Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
+
+valid?.url "https://arturo-lang.io"
+; => true
+
+valid?.email "loremIpsum@"
+; => false
+
+valid?.iban "GB82 WEST 1234 5698 7654 32"
+; => true
+
+valid?.ip "127.0.0.1"
+; => true
+
+valid?.ip.v6 "127.0.0.1"
+; => false
+
And we may also check more than one strings:
valid?.email ["my@email.com", "info@google.com"]
+; => true
+
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
+valid? str :string :block
+
AttributesOption Related parameters Description base58 check base-58 encoding card check credit card number date test if string contains valid date .format: specify date format (default: 'iso
or yyyy-MM-dd
) - could also be one of 'iso8601
, 'short
, 'long
or any given string email verify e-mail address floating test if string contains a parsable floating-point value integer test if string contains a parsable integer value iban verify IBAN (International Bank Account Number) ip verify IP addresses .v4 look for IPv4 addresses only .v6 look for IPv6 addresses only isbn verify ISBN code .10 check for ISBN-10 codes only .13 check for ISBN-13 codes only json test if string contains valid JSON .strict enforce stricter, two-way validation url verify URL
Returns- :logical
ContributingValidator.art has been designed with flexibility and extensibility in mind.
- Have you noticed an error and want to fix sth?
- Do you want to add more tests to a given validator to make it more robust?
- Do you want to add a new one (Have a look into the sample validator!)
You are 100% welcome! Just make a PR and I'll be more than glad to merge it! 馃殌
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.4.0 6 November 2024 48474 / 20 files 0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies.
\ No newline at end of file
diff --git a/public/_packages/validator/0.4.0/spec b/public/_packages/validator/0.4.0/spec
new file mode 100644
index 00000000..66ea4e5c
--- /dev/null
+++ b/public/_packages/validator/0.4.0/spec
@@ -0,0 +1,13 @@
+name: "validator"
+description: "A batteries-included, supercharged & customizable, string validation library for Arturo"
+license: "MIT"
+author: "drkameleon"
+version: 0.4.0
+url: "https://api.github.com/repos/drkameleon/validator.art/zipball/v0.4.0"
+entry: "src/validator.art"
+executable: false
+depends: []
+requires: [
+ >
+ 0.9.83
+ ]
\ No newline at end of file
diff --git a/public/_packages/validator/index.html b/public/_packages/validator/index.html
index c4bbfca8..6ef17a83 100644
--- a/public/_packages/validator/index.html
+++ b/public/_packages/validator/index.html
@@ -1,4 +1,4 @@
-Validator • Arturo Packager Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
+Validator • Arturo Packager Validator
A 馃攱-included, supercharged & customizable,
string validation library for Arturo
What does this package do?This package provides a function (valid?
) that allows to check and validate strings, based on different built-in schemes/patterns, e.g e-mails, urls, etc.
How do I use it?Simply import
it and use the included valid?
function:
import "validator"!
valid?.url "https://arturo-lang.io"
; => true
@@ -18,7 +18,7 @@
; => true
Tip
Different type of checks may accept different extra params, so you'd better have a look into the reference first! 馃槈
Function referencevalid?
Descriptioncheck if given string is valid
Usage
valid? str :string :block
-
AttributesOption Related parameters Description base58 check base-58 encoding card check credit card number email verify e-mail address floating test if string contains a parsable floating-point value integer test if string contains a parsable integer value iban verify IBAN (International Bank Account Number) ip verify IP addresses .v4 look for IPv4 addresses only .v6 look for IPv6 addresses only isbn verify ISBN code .10 check for ISBN-10 codes only .13 check for ISBN-13 codes only json test if string contains valid JSON url verify URL
Returns- :logical
ContributingValidator.art has been designed with flexibility and extensibility in mind.
- Have you noticed an error and want to fix sth?
- Do you want to add more tests to a given validator to make it more robust?
- Do you want to add a new one (Have a look into the sample validator!)
You are 100% welcome! Just make a PR and I'll be more than glad to merge it! 馃殌
LicenseMIT License
Copyright (c) 2024 Yanis Zafir贸pulos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last updated:
0.3.0 6 November 2024 44517 / 19 files 0.2.0 12 September 2024 40335 / 17 files 0.1.0 11 September 2024 32155 / 15 files 0.0.5 9 September 2024 22424 / 14 files 0.0.4 4 September 2024 20483 / 13 files 0.0.3 3 September 2024 19457 / 12 files 0.0.2 31 August 2024 17648 / 10 files 0.0.1 28 August 2024 13337 / 8 files
No dependencies.