https://github.com/i-link-pro-team/ilink
Console utilities and libraries for projects in ilink-pro-team
https://github.com/i-link-pro-team/ilink
cli consul env files-to-consul files2consul ilink sync
Last synced: 3 months ago
JSON representation
Console utilities and libraries for projects in ilink-pro-team
- Host: GitHub
- URL: https://github.com/i-link-pro-team/ilink
- Owner: i-link-pro-team
- License: mit
- Created: 2022-09-27T07:39:22.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T11:11:33.000Z (about 3 years ago)
- Last Synced: 2025-10-27T09:45:41.358Z (9 months ago)
- Topics: cli, consul, env, files-to-consul, files2consul, ilink, sync
- Language: TypeScript
- Homepage:
- Size: 1.04 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Console ilink tools
[](https://badge.fury.io/js/ilink-console-tools)
[](https://www.npmjs.com/package/ilink-console-tools)
## Installation
```bash
npm i -g ilink-console-tools
```
## Links
https://github.com/i-link-pro-team/ilink/blob/master/libs/ilink-console-tools/README.md - full readme
## Usage
```bash
# upload from file to consul-kv
ilink-console-tools env-to-consul --path=.env --consul-token=myCustomToken --consul-host=localhost
# download from consul-kv to file
ilink-console-tools consul-to-env --consul-token=myCustomToken --path=.env --consul-host=localhost
```
# NestJS library for work with consul-kv
[](https://badge.fury.io/js/nestjs-consul-kv-realtime)
[](https://www.npmjs.com/package/nestjs-consul-kv-realtime)
## Installation
```bash
npm i --save consul nestjs-consul-kv-realtime
```
## Links
https://github.com/i-link-pro-team/ilink/blob/master/libs/nestjs-consul-kv-realtime/README.md - full readme
## Usage
### Simple usage with global watchers for consul-kv
```typescript
import { Module } from '@nestjs/common';
import { NestjsConsulKvRealtimeModule } from 'nestjs-consul-kv-realtime';
@Module({
imports: [
NestjsConsulKvRealtimeModule.forRootAsync({
useFactory: async () => ({
port: '8500',
host: 'localhost',
defaults: {
token: `CONSUL_HTTP_TOKEN`,
},
watchers: [
{
interval: 1000,
key: 'consul-key',
callback: async (value: { key: string }) => {
console.log('New value from consul:', value);
},
},
],
}),
}),
],
})
export class AppModule {}
```
## License
MIT