@infini-dev/config v1.0.33
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 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago