[go: up one dir, main page]

Skip to content

ItsRealmy/yacef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yacef logo

yacef

Yet another configuration/environment file

A lightweight and dead simple package meant as a replacement for dotenv which can quickly load YAML files.

Note: This package is ES6-only. It doesn't support CommonJS.

How to use

It's simple! Just put a conf.yml file in the root of your project (as in, the directory which you run node from), and you can import it into your project using yacef/default:

import config from "yacef/default";
// ...

config will automatically be the parsed version of your conf.yml file. If you'd like to specify the path to a different YAML file, that's also possible:

import yacef from "yacef";
const config = yacef("./path/to/file.yml");

That's how easy it is!

Author & license

This package was made by me for Yuuper. This package is licensed under MIT.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published