Skip to content

Add able to customize the default directory of cows files#80

Open
semenInRussia wants to merge 2 commits intopiuccio:masterfrom
semenInRussia:master
Open

Add able to customize the default directory of cows files#80
semenInRussia wants to merge 2 commits intopiuccio:masterfrom
semenInRussia:master

Conversation

@semenInRussia
Copy link

For change the default directory of cows files an user should change env variable COWSAY_DIR

For change the default directory of cows files an user should change
env variable `COWSAY_DIR`

var textCache = {};
var cowsPath = path.join(__dirname, "../cows");
var cowsPath = process.env.COWSAY_DIR || path.join(__dirname, "../cows");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you mention this environment variable in the README somewhere?

@semenInRussia
Copy link
Author

yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants