@urban-zoo/spread-the-word
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

spread-the-word

dev

# twitter:
export CONSUMER_KEY=""
export CONSUMER_SECRET=""
export ACCESS_TOKEN=""
export ACCESS_TOKEN_SECRET=""
export TWITTER_USERNAME=""
# linkedin access token
export LINKEDIN=""
export LINKEDIN_ID=""
# instagram
export INSTA_USERNAME=""
export INSTA_PASSWORD=""
# blogs
export BLOG_MEDIUM=""
export BLOG_DEVTO=""
export BLOG_HASHNODE=""
export BLOG_HASHNODE_USERNAME=""

usage

simple example:

async function main() {
  const shareController = new ShareController({
    entries: {
      path: [__dirname],
      file: 'entries',
    },
    store: {
      path: [__dirname],
      file: 'store',
    },
    markdownPath: `${__dirname}/markdown`,
    imgPath: `${__dirname}/img`,
  })
  await shareController.shareScheduled()
}

main()

instagram example:

[
  {
    "targets": "instagram",
    "ts": "2021-12-02",
    "content": {
      "entries": ["Trees of Life", "#nft #opensea"],
      "image": {
        "path": "0.jpg",
        "alt": "Trees of Life"
      },
      "url": {
        "url": "https://opensea.io/",
        "title": "Trees of Life"
      }
    }
  }
]

get credentials

roadmap

Readme

Keywords

Package Sidebar

Install

npm i @urban-zoo/spread-the-word

Weekly Downloads

0

Version

0.0.11

License

ISC

Unpacked Size

106 kB

Total Files

36

Last publish

Collaborators

  • urbanisierung