Skip to content

zanza00/validate-files

Repository files navigation

Validate Files

validate and modify some files the io-ts way.

This is my exploration on how to do the thing.

How To Validate

npm it

This command checks that the files inside /files are valid. The commited one are valid, feel free to try to experiment with them.

How to change version

npm run vers <hero> <new version>

The corresponding file in ./files is modified based on value provided. If the hero is present in both files it will be updated with the same version in both of the files.

the arguments are positionals and are validated. Same for the files inside the folder.

Examples

 npm run vers wonder-woman 3.0.1
 npm run vers wonderWoman 3.0.1
 npm run vers wonder-woman
 npm run vers wonder-woman 3.0.1

This will update the value in both files

npm run vers capitan-marvel 3.9.1

About

Experiments in validating files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published