JSPM

  • Created
  • Published
  • Downloads 185
  • Score
    100M100P100Q73991F
  • License MIT

Author technology like a top leader

Package Exports

  • techor

Readme


Author technology like a top leader

NPM Version NPM package ( download / month ) Follow @aron1tw Github release actions

Getting Started

npm i techor

First, define your Options and Config:

import type { TechorOptions } from 'techor'

interface Options extends TechorOptions<Config> {
    ...
}

interface Config {
    ...
}

Usage

import Techor from 'techor'

Create a techor instance

const techor = new Techor<Config>()

Extend the Techor

const defaultOptions = {}

class MyTech extends Techor<Config> {
    constructor (
        options: Options
    ) {
        super(defaultOptions, options)
    }
    ...
}

Properties

Read user config file by options.config

readConfig(): Config

Get user config path

get configPath(): string

Get resolved user config path

get resolvedConfigPath(): string