BoyCook / TwitterJSClient

Twitter client written in JavaScript packaged as a node module
GNU General Public License v2.0
562 stars 176 forks source link

Don't force directory structure on the user of your library #67

Open funkjunky opened 6 years ago

funkjunky commented 6 years ago

Why can't I simply provide the configurations in the code?

Don't assume you know how to architect code better than your clients.

kevgathuku commented 6 years ago

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);