https://github.com/data7expressions/h3lp
helper
https://github.com/data7expressions/h3lp
Last synced: about 1 year ago
JSON representation
helper
- Host: GitHub
- URL: https://github.com/data7expressions/h3lp
- Owner: data7expressions
- License: apache-2.0
- Created: 2022-09-19T20:51:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-15T09:36:46.000Z (about 2 years ago)
- Last Synced: 2024-04-15T12:01:22.186Z (about 2 years ago)
- Language: TypeScript
- Size: 1.17 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# H3lp
Helper sets
|Method |Description |
|-----------|-----------------------|
|obj | Object helper |
|fs | File system helper |
|str | String helper |
|test | Test helper |
|utils | Utils helper |
|validator | Validator helper |
## Object Helper
|Method |Description |
|-----------|---------------------------------------|
|clone | clone an object |
|clone | clone an object |
|extends | extend an object |
|delta | get the difference between two objects|
|find | find with predicate |
|jsonPath | find with jsonPath expression |
|sort | sort properties |
## File System Helper
|Method |Description |
|-----------|---------------------------------------|
|exists | verify if exists path |
|create | create folder |
|read | read file |
|remove | remove file |
|copy | copy file |
|write | create or replace file |
|writeBinary| create or replace binary file |
|lstat | returned details about the file |
|readdir | list folder |
## String Helper
|Method |Description |
|-----------|-----------------------------------------------------------------------------------------------------------|
| normalize | normalize a string |
| toString | convert to string |
| replace | Searches a string for a specified value and returns a new string where the specified values are replaced |
| concat | String concatenation |
| capitalize| Make the first character have upper case and the rest lower case |
| initCap | Capitalize words |
| plural | convert word to plural |
| singular | convert word to singular |
| notation | convert to notation camelCase or pascalCase |
## Test Helper
|Method |Description |
|-------------------|---------------------------|
|createBuilder | create TestBuilder |
|createSuiteBuilder | create TestSuiteBuilder |
## Utils Helper
|Method |Description |
|-----------------------|-------------------------------|
|solveEnvironmentVars | resolve environment variables |
|template | solve a template |
## Validator Helper
|Method |Description |
|-----------------------|---------------------------------------------------|
| isObject | evaluate if is Object |
| isEmpty | evaluate if is Empty |
| isPositiveInteger | evaluate if is Positive Integer |
| isNull | evaluate if is Null |
| isNotNull | evaluate if is Not Null |
| isNotEmpty | evaluate if is Not Empty |
| isBoolean | evaluate if is Boolean |
| isNumber | evaluate if is Number |
| isInteger | evaluate if is Integer |
| isDecimal | evaluate if is Decimal |
| isString | evaluate if is String |
| isDate | evaluate if is Date |
| isDateTime | evaluate if is DateTime |
| isArray | evaluate if is Array |
| isTime | evaluate if is Time |
| isBooleanFormat | evaluate if is Boolean Format |
| isNumberFormat | evaluate if is Number Format |
| isIntegerFormat | evaluate if is Integer Format |
| isDecimalFormat | evaluate if is Decimal Format |
| isAlphanumeric | evaluate if is Alphanumeric |
| isAlpha | evaluate if is Alpha |
| isDateFormat | evaluate if is Date Format |
| isDateTimeFormat | evaluate if is DateTime Format |
| isTimeFormat | evaluate if is Time Format |
| between | evaluate if value is between two ranges |
| includes | evaluate if value is included is string or array |