GithubHelp home page GithubHelp logo

alexdindikov / ilink Goto Github PK

View Code? Open in Web Editor NEW

This project forked from i-link-pro-team/ilink

0.0 0.0 0.0 776 KB

Console utilities and libraries for projects in ilink-pro-team

License: MIT License

Shell 0.30% JavaScript 0.98% TypeScript 98.72%

ilink's Introduction

Console ilink tools

npm version monthly downloads

Installation

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

# 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

npm version monthly downloads

Installation

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.