Add environment function for gitnpm-cli