Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

vue-embed-gist

1.0.2 • Public • Published

vue-embed-gist

NPM version NPM downloads CircleCI

Vue component to embed Github Gists, inspired by Blair Vanderhoof's gist-embed. (https://github.com/blairvanderhoof/gist-embed)

Demo

Demo of vue-embed-gist

Install

yarn add vue-embed-gist

or

npm install --save vue-embed-gist

Usage

<template>
  <vue-embed-gist 
      gist-id="your gist id" 
      file="your file name"/>
</template>
 
<script>
import VueEmbedGist from 'vue-embed-gist'
 
export default {
  components: {
    VueEmbedGist
  }
}
</script>

Props

gist-Id

Type: String Required: true

:octocat: Github gist Id

file

Type: String Required: false

File name in the gist

License

MIT © Sudhanshu Siddh

Install

npm i vue-embed-gist

DownloadsWeekly Downloads

8

Version

1.0.2

License

MIT

Unpacked Size

267 kB

Total Files

6

Last publish

Collaborators

  • avatar