Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@bcaster/bcaster-feed-widget
Advanced tools
Readme
An Embeddable web widget for media feeds powered by Bcaster
The BCaster Feed Widget can be accessed via CDN UNPKG or CDN JSDELIVR as well as NPM. When imported via CDN, it exposes a global BCasterFeedWidget
which accepts configuration arguments
To get the BCaster Feed Widget working, copy any of the following code snippet examples that apply, into your web project and replace the appId value with your unique bcaster lite app Id
⚠️ In order for the widget to mount, you are required to have an empty div with an id
bcaster-feed-widget
in your html page. The div should be on the page before themount
event is triggered
<div id="bcaster-feed-widget"></div>
<script src="https://unpkg.com/@bcaster/bcaster-feed-widget@0.0.4/dist/bcaster-feed-widget.js"></script>
<script>
const feedWidget = new BCasterFeedWidget({
apiKey: '53d83cs45-1csauy-47c5sfde-80ffad8-45eefsds031de',
apiSecret: '7632vqeldh286vqis89112s5d7vd2938d29dbd286d98b2',
feedId: '5623dxq65d2o9a9u02h29h',
});
feedWidget.mount();
</script>
First install the package by running
npm install @bcaster/bcaster-feed-widget
oryarn add @bcaster/bcaster-feed-widget
const BCasterFeedWidget = require('@bcaster/bcaster-feed-widget');
const feedWidget = new BCasterFeedWidget({
apiKey: '53d83cs45-1csauy-47c5sfde-80ffad8-45eefsds031de',
apiSecret: '7632vqeldh286vqis89112s5d7vd2938d29dbd286d98b2',
feedId: '5623dxq65d2o9a9u02h29h',
});
feedWidget.mount();
First install the package by running
npm install @bcaster/bcaster-feed-widget
oryarn add @bcaster/bcaster-feed-widget
import BCasterFeedWidget from '@bcaster/bcaster-feed-widget';
const feedWidget = new BCasterFeedWidget({
apiKey: '53d83cs45-1csauy-47c5sfde-80ffad8-45eefsds031de',
apiSecret: '7632vqeldh286vqis89112s5d7vd2938d29dbd286d98b2',
feedId: '5623dxq65d2o9a9u02h29h',
});
feedWidget.mount();
The Bcaster Feed widget library exposes a default BCasterFeedWidget Javascript class which accepts configuration options in the form of a standard Javascript Object. The configuration options signature are as follows
@param {Object} args Configuration values
@param {String} args.apiKey (Required) The client api key
@param {String} args.apiSecret (Required) The client api secret
@param {String} args.feedId (Required) The ID of a given feed
@param {String} args.mode (Optional) {Defaults to 'production'} Mode option for switching between development and production. This option allows the possibility to run in a sandbox environment
@param {Number || String} args.numOfItems (Optional) {defaults to 20} The number of items to be displayed as an embeded feed
@param {String} args.lang (Optional) {Defaults to 'en'} Language attribute for localization
@param {Object} [args.divStyle] (Optional) Configuration values for the feed div style
@param {Number} [args.divStyle.height] (Optional) {Defaults to 200} Height for the media feed div {unit value in `px`}
@param {Number} [args.divStyle.width] (Optional) Width for the media feed div {unit value in `%`}
@param {String} [args.divStyle.orientation] (Optional) {Defaults to 'vertical'} The orientation of the feed div scrolling direction i.e. (either 'vertical' or 'horizontal')
@example
const feedWidget = new BCasterFeedWidget({
apiKey: '53d83cs45-1csauy-47c5sfde-80ffad8-45eefsds031de',
apiSecret: '7632vqeldh286vqis89112s5d7vd2938d29dbd286d98b2',
feedId: '5623dxq65d2o9a9u02h29h',
mode: 'development',
numOfItems: 20,
lang: 'en',
});
Currently the following language options are supported
en
- Englishfi
- Finnishesc
key to closing the modal to ensure accessibility.margins
.FAQs
An embeddable web widget for showing bcaster feed items
The npm package @bcaster/bcaster-feed-widget receives a total of 1 weekly downloads. As such, @bcaster/bcaster-feed-widget popularity was classified as not popular.
We found that @bcaster/bcaster-feed-widget demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.