New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

binance-fiat-widget

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binance-fiat-widget

``` npm install binance-fiat-widget ```

  • 0.0.12
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

install

    npm install binance-fiat-widget

used

    <div id="widget"></div>
    import Widget from 'binance-fiat-widget'

    const options = {
        locale: 'en',
        width: 200,
        theme: 'dark',
        ref: ''
    }

    Widget('#widget', options)

Parameters

  • el: css选择器dom对象

    react

        import Widget from 'binance-fiat-widget'
        const app = () => {
            const t = useRef<HTMLDivElement>(null)
            // or
            // const t = document.querySelector('#test')
    
            useEffect(() => {
                if (t) {
                    Widget(t)
                }
            }, [])
            return (<div id="#test" ref={r}></div>)
        }
        
    

    cdn

        <script src="https://bin.bnbstatic.com/static/js/ocbs/binance-fiat-widget.js"></script>
        <div id="widget"></div>
    
        const t = document.querySelector('#test')
        Widget(t)
    
  • options.locale: string

    语言,可空,default: 'en'

    opts: 'en'|'cn'|'tw'|'kr'|'ru'|'vn'|'it'|'es'|'de'|'fr'

  • options.width: number

    宽度,可空,default: 200

    range: 200 - 500

  • options.theme: string

    主题, 可空,default: 'light'

    opts: 'light' | 'dark'

  • options.ref: string

    邀请码,可空

  • options.api_host: string

    getCoinListApi请求地址,可空

FAQs

Package last updated on 15 Jan 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

  • 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