1.0.33 • Published 1 year ago

@infini-dev/config v1.0.33

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Statements Branches Functions Lines

Infinisoft Dev is a set of developer's design patterns, scripts, templates and tools to make our lives easier and go faster. Faster, close to the speed of light!

Getting Started

Configuration Abstraction with an adapter for localstorage..

Common use case
Store configuration

Install

Run of one these command to install.

$ npm i @infini-dev/logging

or

$ yarn add @infini-dev/slogging

Examples

Output all level.

import {storage} from '@infini-dev/logging'
const {error} = logging()

const saveDocument = (path: string, changes: string) => {
    
    // ... Implementation

   error("Failed to save..")

    // ... Implementation
}

Down the road requirement changes. You need to provide more output with multiple source. No problem, change the adaptor for another stoage without any changes to the implementation.

import {storage} from '@infini-dev/storage'
import {storageAdapterNode} from "@inifni-dev/storage/nodejs"
import {storageAdaperSentry} from "@infini-dev/sentry"
const _storage = storage([storageAdapterNode, storageAdaperSentry])

const saveDocument = (path: string, changes: string) => {
    
    // Same implementation

    storage.write(path, changes)
}

More details on www.infini-soft.com

Paid Contribution

Code for buck. You want to contribute? We will PAY for it! We are looking for collaborators to speed our eco system's development.

Powered 🚀 by Infinisoft Inc. Wanna code the future? Come with us https://www.infini-soft.com

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.33

1 year ago

1.0.11

1 year ago

1.0.32

1 year ago

1.0.10

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago