Giter Site home page Giter Site logo

Comments (6)

Ephigenia avatar Ephigenia commented on September 24, 2024 1

@wcauchois I’ve published a new version v0.5.0 which you now can use in your library. See the example in the README.md: https://github.com/Ephigenia/ikea-availability-checker#api
Please post another issue if there’s something missing.

from ikea-availability-checker.

wcauchois avatar wcauchois commented on September 24, 2024 1

That's great! Thank you @Ephigenia.

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on September 24, 2024

@wcauchois sorry for that brief previous brief answer

Yes sure, I can optimize the sources for being used as a library. Are there any requirements that you have that would be nice to fulfil?

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on September 24, 2024

The first issue identified seems to be that the "main" entry in the package.json points to the source/cli.js script which becomes the file that is loaded when require('ikea-availability-checker'); is loaded: https://github.com/Ephigenia/ikea-availability-checker/blob/master/package.json#L39

I’ll have to check what’s the most common cause to solve this. Sure there’ll be a solution.

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on September 24, 2024

I’ve been thinking about this. The most anticipated feature I can think of would be "What’s the current item in Store B of product A" … which could look like this:

// buCode is country specific
const checker = require('ikea-availability-checker');
await checker.availability(buCode, productId);

What bothers me is the question of how the user/programmer knows about the buCode. There are several lookup functions in the stores but they might be to difficult to use.

@wcauchois can you give me some insights on how you'd like to use the lib?

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on September 24, 2024

Would be happy to see for what the lib is used then.

from ikea-availability-checker.

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.