Socket
Book a DemoInstallSign in
Socket

@miyaoka/nuxt-twitter-widgets-module

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miyaoka/nuxt-twitter-widgets-module

Twitter widgets loader for Nuxt

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

@miyaoka/nuxt-twitter-widgets-module

npm (scoped with tag) npm CircleCI Codecov Dependencies js-standard-style

Twitter widgets loader for Nuxt

📖 Release Notes

Features

  • Add twitter widgets script to header
  • Initialize embedded tweet content on component mounted or updated by custom directive.

Setup

  • Add @miyaoka/nuxt-twitter-widgets-module dependency using yarn or npm to your project
  • Add @miyaoka/nuxt-twitter-widgets-module to modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    '@miyaoka/nuxt-twitter-widgets-module',

    // With options
    [
      '@miyaoka/nuxt-twitter-widgets-module',
      {
        directiveName: 'twitter-widgets',
        scriptUrl: '//platform.twitter.com/widgets.js'
      }
    ]
  ]
}

Usage

Add directive (default: v-twitter-widgets) to component that has tweet.

<some-component v-html="hasTweetText" v-twitter-widgets/>

Development

  • Clone this repository
  • Install dependnecies using yarn install or npm install
  • Start development server using npm run dev

License

MIT License

Copyright (c) Masaya Kazama mailto:miyan@t-p.jp

FAQs

Package last updated on 03 Apr 2018

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