Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

trillion-widget

Package Overview
Dependencies
Maintainers
2
Versions
306
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trillion-widget

Trillion AR Widget Source

  • 0.2.1
  • npm
  • Socket score

Version published
Weekly downloads
878
decreased by-4.67%
Maintainers
2
Weekly downloads
 
Created
Source

Trillion AR Widget

This is Trillion AR Widget that allow you to integrate Trillion SDK in your site. For more information please visit https://trillion.jewelry

How to use:

Install a library:

npm install trillion-widget --save
yarn add trillion-widget

You need to create an empty div element for widget initialization. For example:

 <div id="trillion-widget"></div>

Using in your js code:

import {TrillionWidgetApp} from "trillion-widget"

const elem = document.getElementById('trillion-widget')
const twa = new TrillionWidgetApp(elem)
twa.setJewelryID('demo-pendant-ar')
twa.refresh()

For typescript:

const elem = document.getElementById('trillion-widget') as HTMLElement

Keywords

FAQs

Package last updated on 31 Aug 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc