@loomhq/loom-embed
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.12 • Public • Published

    npm version CircleCI codecov

    Installing

    npm package

    npm install @loomhq/loom-embed

    Script tag

    <script type="module"> import * as loom from "https://www.unpkg.com/@loomhq/loom-embed@1.2.4/dist/esm/index.js?module"; </script>

    See documentation for installation and usage.

    Usage

    import * as loom from '@loomhq/loom-embed';

    Methods

    .linkReplace(selector, [options], target)

    Replaces any loom links at the nodes matching the selector with the embedded video. Replacement occurs on the entire document, or on the optional target DOM element.

    .textReplace(textString, [options])

    Takes a string and replaces any Loom URLs with the embed html

    -> returns a promise

    .oembed(videoUrl, [options])

    oembed metadata from the given video url

    -> returns a promise

    Options

    The embed code is responsive by default. Only set the width/height values if you require your embed code to be a fixed size

    width - [Number] value specifying the max pixel width

    height - [Number] value specifying the max pixel height

    Keywords

    Install

    npm i @loomhq/loom-embed

    DownloadsWeekly Downloads

    4,621

    Version

    1.2.12

    License

    ISC

    Unpacked Size

    35.3 kB

    Total Files

    16

    Last publish

    Collaborators

    • nathanthomas
    • andi-ni-loom
    • brian-liao-loom
    • jflashlight
    • dkim96
    • btuttle
    • jonathan415
    • brian-nguyen-loom
    • maitri.shah
    • devindengloom
    • jose.medina
    • ben.lo
    • sergioloom
    • dainguyendo
    • tatiana_loom
    • jessica.pancer
    • jesse-lee-loom
    • thefriendlyghost
    • josh_loom
    • johnnyopao
    • keepitterron
    • vinayh
    • garshythoel
    • ploom
    • hihayk
    • brendonjohn
    • stevemilburn
    • brhenrique
    • loom.embed-sdk
    • cacheonly
    • diaswrd
    • nymerias
    • ydep
    • josecarlosatloom
    • yjaspar
    • acacheung
    • msfragala
    • avanika
    • luis.loom
    • fgwuuei1
    • gchilds
    • shayonj
    • tiffyork
    • sravanti
    • swac
    • vinibaggio
    • azacharakis
    • jmreidy
    • premaloom
    • solidcell
    • vladloom
    • peter.heesterman
    • angelaliu
    • rodrigoloom
    • noah.loom
    • jennyloom
    • juliannaroenloom
    • marni.kostman
    • cndreisbach
    • narayangowraj8
    • lingrino-loom
    • dj_haile
    • catherinelin
    • andrzej.wisniewski
    • mosesj-loom
    • matt.lavine
    • erinbyerly
    • cwaslo-loom
    • aditya_singla
    • jiaweiou
    • loominghoward
    • vishalsantoshi
    • wilbertthelam