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

bus-mj

v1.1.6

Published

package for BUS station in Mahajanga

Downloads

24

Readme

API ho amantarana ny fivezivezian'ny bus eto Mahajanga

TANJONA :

Ho fanampina ireo vahiny, hitady ny bus tokony andehanany

Hanamorana ny fitadidiana ny trajet an'bus iray

Hialana @ tsy fahafantarana ny "arret" tokony ialana

Ahitana ny:

  • "point de depart" sy "point d'arrivee"
  • distance entre "deux point"
  • temps de circulation
  • ...

import :

  import { getBus, getAllBus, getAllStop, getStop } from 'bus-mj';

usage :

// declarer une fonction asynchrone
async function main() {

  // maka ny lisitry ny bus rehetra
  console.log(await getAllBus());

}

main();
[
  {
    "BUS_ID":3,
    "BUS_NAME":"ligne 3"
  },
  {
      "BUS_ID":5,
      "BUS_NAME":"ligne 5"
  },
  {
        "BUS_ID":70,
        "BUS_NAME":"ligne 7"
  },
  {
    "BUS_ID":71,
    "BUS_NAME":"ligne 7"
  },
  {
    "BUS_ID":8,
    "BUS_NAME":"ligne 8"
  },
  {
    "BUS_ID":11,
    "BUS_NAME":"ligne 11"
  },
  {
    "BUS_ID":15,
    "BUS_NAME":"ligne 15"
  }
]
// declarer une fonction asynchrone
async function main() {

  // maka ny lisitry ny arret rehetra
  console.log(await getAllStop());

  // maka ny lisitry ny arret @bus mitondra id=3
  console.log(await getStop(3));

  // maka ny lisitry ny bus mandalo @ arret de depart='star' sy arrive='poste'
  console.log(await getBus('star', 'poste'));

}

main();

API :

https://bus-mj.onrender.com/api?depart=star&fin=poste

  • fanazavana: depart: arret du point de depart fin: arret du point finnal

  • ny azo:

{
    "BUS_ID": "identifiant ny bus",
    "BUS_NAME": "anaran'ilay bus",
    "BUS_PLAQUE": "lokon'ilay plaque",
    "LONG": "halaviran'ny lalana",
    "TIME": "fotoana lany",
    "YOUR_TRAJET": ["filaharan'ireo arret handalovana"]
}
  • valiny ilay ohatra:

[
  {
    "BUS_ID": 3,
    "BUS_NAME": "ligne 3",
    "BUS_PLAQUE": "",
    "LONG": 22,
    "TIME": 1,
    "YOUR_TRAJET": [
      "star",
      "plaque 7",
      "loterana",
      "bazary kely",
      "csb",
      "croisement cimetiere",
      "jovena",
      "lalatapaka",
      "plaque",
      "miaramila",
      "bazary antanimasaja",
      "pompy",
      "bizo",
      "galana",
      "manjarisoa",
      "jardin Caylah",
      "bain douche",
      "photo sport",
      "hôtel de ville",
      "croix rouge",
      "poste"
    ]
  },
  {
    "BUS_ID": 70,
    "BUS_NAME": "ligne 7",
    "BUS_PLAQUE": "bleu",
    "LONG": 32,
    "TIME": 51,
    "YOUR_TRAJET": [
      "star",
      "plaque 7",
      "loterana",
      "bazary kely",
      "csb",
      "croisement cimetiere",
      "jovena",
      "lalatapaka",
      "plaque",
      "miaramila",
      "bazary antanimasaja",
      "pompy",
      "bizo",
      "galana",
      "manjarisoa",
      "jardin Caylah",
      "galax",
      "mahabibo",
      "h\u00f4tel de ville",
      "croix rouge",
      "poste"
    ]
  },
  {
    "BUS_ID": 71,
    "BUS_NAME": "ligne 7",
    "BUS_PLAQUE": "rouge",
    "LONG": 5,
    "TIME": 53,
    "YOUR_TRAJET": [
      "star",
      "plaque 7",
      "loterana",
      "bazary kely",
      "csb",
      "croisement cimetiere",
      "jovena",
      "lalatapaka",
      "plaque",
      "miaramila",
      "bazary antanimasaja",
      "pompy",
      "bizo",
      "galana",
      "manjarisoa",
      "jardin Caylah",
      "bain douche",
      "mahabibo",
      "patel",
      "bata",
      "maki-loc",
      "tsaralaza",
      "pont blanc",
      "maman'i phillipine",
      "rond point cité",
      "rond point taxi",
      "croisement soatata",
      "secaline",
      "bar rotsaka",
      "croisement bloc",
      "pharmacie",
      "hopital manarapenitra",
      "caserne",
      "barea",
      "airtel",
      "solima",
      "lycée technique",
      "élevage",
      "roche rouge",
      "maison verte",
      "jardin d'amour",
      "nandrasana",
      "cnaps",
      "bord",
      "akbar",
      "kakal",
      "boa",
      "Bazary be",
      "score",
      "poste"
    ]
  }
]

Mbola hanampiana azy :

  • donnee de ligne du BUS: 6, 9, 10, 11, 12, 15, 18
  • temps de circulation
  • longeur
  • ireo arret ao anaty ny fokotany irray
  • depart=fokotany & arrivee=fokotany
  • mamatatra ny hoe mbola miasa ve io bus io @zao (maka ny heure actuel)
  • mifindra BUS raha tokony hifindra rehefa tonga @arret iray (Oh: belobaka vers petit plage)
  • ...