JSPM

@hashtags-ai/hashtag-generator

2.1.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q33221F
    • License MIT

    An npm package to generate hashtags for you based on the text or image you provide.

    Package Exports

    • @hashtags-ai/hashtag-generator
    • @hashtags-ai/hashtag-generator/dist/index.js
    • @hashtags-ai/hashtag-generator/dist/index.m.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hashtags-ai/hashtag-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Hashtag Generator - NPM Package

    An npm package to generate hashtags using https://hashtagsai.github.io/API-Docs/

    Installation

    npm i @hashtags-ai/hashtag-generator

    Usage

    import HashtagAPI from '@hashtags-ai/hashtag-generator';
    
    const generator = new HashtagAPI({
        apiKey: 'Your API Key',
    });

    Methods

    Top Hashtags

    generator.getTop().then((tags) => {
        console.log(tags);
    })
    generator.getSimilar("insta").then((tags) => {
        console.log(tags);
    })

    Post count for a hashtag

    generator.getPostCount("insta").then((count) => {
        console.log(count);
    })
    generator.getTrending().then((tags) => {
        console.log(tags);
    })
    generator.getTrendingByCountry("India").then((tags) => {
        console.log(tags);
    })
    
    // get a list of countries from here
    generator.getCountryList().then((tags) => {
        console.log(tags);
    })

    Categories

    generator.getCategories().then((tags) => {
        console.log(tags);
    })

    HashTags by Category

    generator.getHashtagsByCategory(1).then((tags) => {
        console.log(tags);
    })

    Hashtags based on Image

    generator.generateHashtagsFromImage("base64Image").then((tags) => {
        console.log(tags);
    })