@thymet/core
v0.2.0
Published
basic common utilities for server development
Downloads
2
Readme
Features
| Feature | Introduction | | ----------- | -------------------------------------------------------------------------------- | | NanoID | create NanoID as primary key in database | | ThymetError | base error type for global exception catch | | Auth | account auth with bearer and basic auth supported | | Captcha | create captcha for account verify |
Git Hooks
you can use husky to add git hooks for linting before commit. for example:
npx husky ./husky/pre-commit "npm run lint"
this will create a pre-commit hook in .husky directory. if you commit your changes, it will trigger before the commit.
Lint
the project use typescript-eslint and prettier for linting and formatting, with lint-staged support which will only make changed files to take effect.