A simple tool to generate pre-compiled version information from packages and git versions.
Kaisaku features three built-in version providers
simple
- provides basic timestamp informationpackageInfo
- readspackage.json
and returns the version of the packagegit
- fetches the latest commit information
You can also implement your own providers as functions returning records:
import * as kaisaku from "kaisaku"
// use the default providers
kaisaku.withDefaults()
.use(() => ({ hello: "world" }))
// generate the version information file
kaisaku.generate()
Copyright (c) 2022 Kaylen Dart
Kaisaku is licensed under either the MIT License, or the Apache License, at your discretion. You can find these licenses in their respective files, LICENSE-MIT and LICENSE-APACHE.