-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use library without provided API #186
Comments
Found it by inspecting the tests. Thanks anyway! |
Since you figured it out, could you share and/or add some info to the docs? Thx! |
Of course. I have no idea if this is 'the right way' to do it, but I can expose the library like this:
Then you could consume the library like so:
Again, I have no idea if they recommend doing it like this, but this could get you started. How you want to expose the library is up to you. I'm getting some warnings, but that doesn't seem to matter. |
I recently needed to use iFramely for a project and couldn't make use of the HTTP API and needed to use the library directly. It took a while and some digging to figure it out, so I've documented it on my blog which I'll link below, maybe someone else might find it useful. |
@dhamaniasad your blog is dead? |
It’s fixed now, thanks.
On Wed, 6 Jul 2022 at 5:26 AM, skookumchoocher ***@***.***> wrote:
@dhamaniasad <https://github.com/dhamaniasad> your blog is dead?
—
Reply to this email directly, view it on GitHub
<#186 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCZMYWNPZ5JQIRSTJSOZ23VSTDR5ANCNFSM4ED2PGXA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
With Regards,
Asad Dhamani
|
The docs specify that you can also use Iframely as a NodeJS Library. How should I go about this? I installed the package into my own API but I don't know how to consume it as a library without the API that is provided. I'd ideally just like to include it by means of a
const iframely = require('iframely');
or something similar. Can't seem to find a clear example.Thanks in advance.
The text was updated successfully, but these errors were encountered: