Comments (3)
Try:
npm install iframely
and
var iframely = require('iframely');
Example usage is in https://github.com/itteco/iframely/blob/master/modules/api/views.js#L48. Its loaded there as:
var iframely = require('../../lib/iframely');
Also there should be config loaded as in https://github.com/itteco/iframely/blob/master/modules/tests-ui/tester.js#L1:
GLOBAL.CONFIG = require('../../config');
In your case path might be another.
from iframely.
A word of caution though: if used as node lib, Iframely will still return some rendering endpoint addresses like /render?uri=
where domain plugins require so. You'd need to open this endpoint for HTML to load correctly. For example, for twitter tweets, github gists, storify, all the articles.
We'll be refactoring lib and renders soon to eliminate this dependency. The current wrapper is there so that the mentioned domains can load in dynamic one-page style javascript apps.
from iframely.
I see. For the moment we only need to use this for embedding videos, so perhaps this won't be an issue. Thanks for getting me started!
from iframely.
Related Issues (20)
- Version 2.0.0 - BREAKING CHANGES. Migration steps HOT 2
- Is proxy support (almost) gone? HOT 7
- Issue while running server .js : SyntaxError: Unexpected token import HOT 2
- Thumbnails for portrait-mode Vimeo videos HOT 1
- iFramely 1.6.1 - no reconnect to Redis or blocking request HOT 5
- Missing meta description, site, author and date HOT 2
- Any hints or beginner guide about how to get more information? HOT 1
- Twitter embeds cut off at the bottom HOT 2
- Spotify Video podcast do not have the right aspect ratio HOT 1
- Missing attributes for Spotify embeds HOT 2
- Batch querying by content IDs does not work HOT 1
- Facebook public posts redirect to facebook.com/login HOT 4
- Intermittent issues with Google share links HOT 4
- Inspect Network Calls HOT 1
- AWS cli for pushing build image
- New Tumblr embeds HOT 2
- Issue with a long html page without javascripts. HOT 2
- remove racially loaded terms from the website HOT 1
- Core plugins tests are failing in Node 18 HOT 5
- Better aspect ratio for Loom embeds HOT 1
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 iframely.