Socket
Book a DemoInstallSign in
Socket

@flixier/sdk

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flixier/sdk

SDK for integrating Flixier.com into your website

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

Flixier SDK

Installation & Usage

Via NPM or YARN

$ npm install @flixier/sdk -> if you're using NPM

or

$ yarn add @flixier/sdk -> if you're using YARN

Then just import it and get going :)

import FlixierSDK from '@flixier/sdk';

Via <script> tag

You can also add it directly in your HTML page via a script tag:

<script src="[path-to-script]/FlixierSDK.[version].js"></script> which will create a global object called FlixierSDK.

API

FlixierSDK.button

A function used to diynamically insert a Flixier button on your page. Clicking this button will open Flixier homepage.

Type: Function(rootElement, config?)

Params:

1. rootElement

The dynamically generated button will be inserted in this element;

Type: DOMElement

2. config

Aditional configuration options for the style and behaviour of the button.

Type: Object
Default:

{
    theme: 'blue', // styling theme. Available options: 'blue' | 'white'
    popup: true // whether or not to open it in a new window, as a pop-up
}

Returns

Returns a function you can use to remove the button from the page.

Example

import 'FlixierSDK.[version].js'

let removeFlixierBtn = window.FlixierSDK.button(document.body, {
    theme: 'white',
    popup: false
});

// Later in the progam when you no longer need it
removeFlixierBtn()

Made with ❤ by Flixier team

Keywords

flixier

FAQs

Package last updated on 19 Mar 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.