https://github.com/aamulumi/almanach
Minimal Independant Typescript Patterns Library for faster development
https://github.com/aamulumi/almanach
Last synced: 26 days ago
JSON representation
Minimal Independant Typescript Patterns Library for faster development
- Host: GitHub
- URL: https://github.com/aamulumi/almanach
- Owner: AamuLumi
- License: mit
- Created: 2024-05-16T08:49:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-16T08:52:57.000Z (about 1 year ago)
- Last Synced: 2024-05-20T23:27:21.295Z (12 months ago)
- Language: TypeScript
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# almanach
[WIP 0.0.1] Minimal Independant Typescript Patterns Library for faster development
---
After a lot of projects with Typescript and Javascript, I saw I implemented the same patterns on all projects.
This library regroups all the code I'm always using without any dependency.## Structure
### Mixins
Mixins are designed to add features on a class.
You can add any number of mixins to a class.JS and TS doesn't provide any technique to do multiple inheritance, so mixin are a way to achieve this.
#### Available
- AddObservable [more](./src/mixins/Observable.ts) : add [Observable](https://en.wikipedia.org/wiki/Observer_pattern) methods to a class.
## Development
```
npm i
npm run test
```### Tests
almanach is using two types of test :
- standard unit tests (backward compatibility) with jest
- type tests (error detection through Typescript) with tsd## Why almanach ?
I remembered second `Back to the future` movie, and, in French, the book containing all the sports results was an `almanach`.
The word is cool, so why not using it ?## License
MIT