Nascent Personality Manifestation

    @ta-interaktiv/share-url-factory
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.2 • Public • Published

    Share URL Factory

    Installation

    yarn add @ta-interaktiv/share-url-factory

    Usage

    import { shareURLFactory } from '@ta-interaktiv/share-url-factory'
    
    let twitterUrl = shareURLFactory['twitter']({
      url: 'http://interaktiv.tagesanzeiger.ch/2017/grossartiges-werk',
      via: 'tagesanzeiger',
      title: 'Schaut euch diese grossartige Grafik an!',
      hashtags: ['TAGrafik', 'awesome']
    })
    
    let facebookUrl = shareURLFactory['facebook']({
      url: 'http://interaktiv.tagesanzeiger.ch/2017/grossartiges-werk',
      facebook_id: 123, // Facebook App ID, doesn't work without it.
      hashtags: ['TAGrafik'] // Also as an array, but will only use the first
      // item.
    })

    Documentation

    Can be found here.

    Install

    npm i @ta-interaktiv/share-url-factory

    DownloadsWeekly Downloads

    162

    Version

    2.0.2

    License

    ISC

    Unpacked Size

    30.1 kB

    Total Files

    13

    Last publish

    Collaborators

    • dariush-mehdiaraghi
    • mrdz_tx
    • mathiaslutz
    • bartfehr
    • sebaa
    • grmnd