Comments (6)
@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.
That's great! Thank you @Ephigenia.
from ikea-availability-checker.
@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.
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.
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.
Would be happy to see for what the lib is used then.
from ikea-availability-checker.
Related Issues (20)
- 403 for all request to US stores HOT 15
- undefined "stock" in alpha version HOT 1
- undefined store for fr country HOT 3
- ERR_HTTP_403 with pl country HOT 4
- Error "ERR_HTTP_403" on 2.0.0-alpha.1 version HOT 10
- The automated release is failing 🚨
- The automated release is failing 🚨 HOT 2
- Help HOT 1
- 403 Error / Deprecated on Alpha 5 HOT 12
- smoke test for all countries HOT 1
- recurring smoke test (cron) HOT 7
- get stores from meta files HOT 7
- get list of countries from JS file
- bug: ERR_HTTP_403 on country KR using npx HOT 1
- bug: France store 518 metadata fix HOT 1
- Typescript support HOT 1
- Wrong Coordinates for store in Karlsruhe HOT 1
- SyntaxError: Unexpected token '.' HOT 3
- 403 for all request to BE stores HOT 6
- Szczecin store not visible in the software HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ikea-availability-checker.