0.1.2 • Published 6 years ago

steemget v0.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Steemget

What is Steemget?

Steemget is small js library that allow you to include article from Steemit on your website. It similar to facebook widgets.

How to use it?

To include your article from Steemit on your web page, copy and paste code snipped show below, just before close body tag.

<body>


    ...

    <div id="steemit-article" ></div>

    ....


    <script src="https://cdn.jsdelivr.net/npm/steemget/js/app.js"></script>
    <script>
        new Steemget({
          author: 'piotr-galas',
          permalink: 'o-continuous-integration'
        })
    </script>
</body>

Content of article will be placed inside of <div id="steemit-article" ></div> You need also provide your username and article permalink like example above.


Example above will show: https://steemit.com/polish/@piotr-galas/o-continuous-integration

Options:

keyvaluedefault
authorauthor of articleno default
permalinkend part of link to articleno default
relCanonicaltrue or false (if true then it append relCanonical). It is to tell google about duplicated contenttrue
errorMessageerror message when article not foundContent not find, are you sure that there is article in..

Run project locally

To run project locally you need to have node.js and npm installed

  • git clone git@github.com:piotr-galas/steemget.git
  • cd steemget
  • npm install
  • npm start

Browser should open automatically.

Do not modify css/app.css directly. This file is generated from scss located in dev and will be override every time you modify one of .scss file.

Contributing

Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration.

Features todo:

  • allow to modify some minor css from object configuration
  • add optional link to article in steemit
  • add optional widget with number of likes, estimated value in USD

License

This package is available as open source under the terms of the MIT License.

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago