TwitterJSClient
TwitterJSClient copied to clipboard
Don't force directory structure on the user of your library
Why can't I simply provide the configurations in the code?
Don't assume you know how to architect code better than your clients.
You can still provide the config to the Twitter object directly in your code
i.e.
let config = {
consumerKey: "xxx",
consumerSecret: "xxx",
accessToken: "xxx",
accessTokenSecret: "xxx",
callBackUrl: "xxx"
};
let twitter = new Twitter(config);