npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

begiresh

v1.3.2

Published

A mobile application smart banner for Iranian markets

Downloads

23

Readme

Begiresh

Begiresh is a lightweight none-jQuery, smart application banner targeting major Iranian android markets. A live demo can be seen at roozame.com.

For having more information, demo and how-to instructions, visit inb-co.github.io/Begiresh (currently only Farsi).

This project was inspired by jquery.smartbanner.

Installation

Yarn

$ yarn add begiresh

NPM

$ npm install --save begiresh

CDN

https://unpkg.com/begiresh/dist/begiresh.js

https://unpkg.com/begiresh/dist/begiresh.css

Usage

  1. Add Meta and Begiresh.css to <head> of your HTML:
  <head>

    <title>Roozame.com</title>

    <meta name="cafe-bazaar-app" content="app-id=com.inb.roozame"> <!-- And/Or -->
    <meta name="google-play-app" content="app-id=com.inb.roozame"> <!-- And/Or -->
    <meta name="myket-app" content="app-id=com.inb.roozame">

    <link rel="android-touch-icon" href="roozame-android-icon.png"> <!-- And/Or -->
    <link rel="apple-touch-icon" href="roozame-apple-touch-icon.png"> <!-- And/Or -->
    <link rel="apple-touch-icon-precomposed" href="roozame-apple-touch-icon-precomposed.png">

    <link rel="stylesheet" href="path/to/begiresh.css" media="screen" title="Begiresh Smart Banner CSS">

    <!-- Other Stuff Here -->
  </head>
  1. Add Begiresh.js to <body> of your HTML:
  <body>

    <!-- Other Stuff Here -->

    <script src="path/to/begiresh.js"></script>
  </body>
  1. Create a new banner from your JS:
  new Begiresh({
    title: 'روزامه Roozame',
    author: 'ایده نگاران بینا'
  });

Options

you can use these options for having a customized smart banner:

| Option | Default Value | Type | Description | Required | | ------ | ------------- | ---- | ----------- | -------- | | title | none | string | Title of app | Yep | | author | none | string | Author of app | Yep | | price | رایگان | string | Price of app | Nop | | icon | Site's Favicon | string | Address to app's icon | Nop | | daysHidden | 15 | number | Number of days banner hides after dismiss | Nop | | daysReminder | 90 | number | Number of days banner hides after download | Nop | | storeLang | User's Language | string | User and store's language (on ISO Language Codes) | Nop | | store | googlePlay | string | Store's ID | Nop | | button | بگیرش | string | Text on download button | Nop | | theme | default | string | Begiresh Theme | Nop | | force | false | boolean | Force to have banner on every platform and ignoring cookies | Nop | | onDownload | none | function | run a function after download | Nop | | onClose | none | function | run a function after dismiss | Nop |

These stores are currently supported:

| Name | ID on Instance | ID on Meta | | ------ | ------ | ------ | | Googel Play (گوگل‌پلی) | googlePlay | google-play-app | | Cafe Bazaar (کافه‌بازار) | cafeBazaar | cafe-bazaar-app | | Myket (مایکت) | myket | myket-app |

Development

To customize and develop the project you could use following npm commands:

To build whole project

  npm run build

To bundle and minify JS

  npm run build-js

To transpile LESS and parse CSS

  npm run build-css

License

Begiresh is a free and open project developed and maintained by Javid Izadfar at INB Co., published under MIT license.