Giter Site home page Giter Site logo

Comments (6)

jjosef avatar jjosef commented on August 15, 2024

Hi, this is how I use it:

var easypost = require('node-easypost');

Then in my functions I use it like so:

var ep = new easypost(apiSecret);

from easypost-node.

crispen-smith avatar crispen-smith commented on August 15, 2024

That's exactly what I would expect, and I'll be using that way myself, I just don't enjoy the fact that I have to go so contrary to the usage instructions in the read.me

from easypost-node.

jjosef avatar jjosef commented on August 15, 2024

Agreed, you could submit a pull request with updated README, I'm sure they'd appreciate it.

from easypost-node.

crispen-smith avatar crispen-smith commented on August 15, 2024

That's a good thought.

from easypost-node.

jjosef avatar jjosef commented on August 15, 2024

I went ahead and did it #7

from easypost-node.

crispen-smith avatar crispen-smith commented on August 15, 2024

it looked to me like yours had only hit the first couple of lines where it's originally declared, I also changed the calls to the original easypost (now ep) object further down in the code. I'd already done this is my fork so started a new pull from there.

from easypost-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.