@datagica/parse-social-handles

0.0.6 • Public • Published

@datagica/parse-social-handles

Parse common professional social network handles from a document:

  • Twitter
  • Skype
  • LinkedIn
  • Viadeo
  • Facebook

Installation

$ npm install --save @datagica/parse-social-handles

Usage

import parseSocialHandles from "@datagica/parse-social-handles";

parseSocialHandles("@Uber and @SpaceX decide to merge, announce a new automated space car for 2026").then(..).catch(..)
// will output:
[
  {
    "network": "Twitter",
    "username": "Uber",
    "url": "twitter.com/Uber"
  },
  {
    "network": "Twitter",
    "username": "SpaceX",
    "url": "twitter.com/SpaceX"
  }
]

TODO

  • more social networks

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i @datagica/parse-social-handles

    Weekly Downloads

    2

    Version

    0.0.6

    License

    GPL-3.0

    Last publish

    Collaborators

    • datagica