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 🙏

© 2026 – Pkg Stats / Ryan Hefner

bus-mj

v2.2.0

Published

package for BUS station in Mahajanga

Readme

API ho amantarana ny fivezivezian'ny bus eto Mahajanga

TANJONA :

Ho fanampina ireo "developer" hanamboatra vahaolana

import :

import {
  findBusAll,
  findStopAll,
  findBusDetailById,
  findBusByOneStop,
  findBusByTwoStop,
  findOperatorAll,
  findZoneAll,
  findBusDetailByOperator,
  findOpenHoursAll,
  findStopByRef,
  findBusByStopLabel,
  findBusByTwoStopLabel
} from "bus-mj";

usage :

  • List Bus
// maka ny lisitry ny bus rehetra
console.log( findBusAll() );
// result
[
  {
    type: "relation",
    id: 16057683,
    members: [
      {
        type: "node",
        id: 6450569024,
        lat: -15.7066094,
        lon: 46.3855679,
        label: "Imaintsoanala",
      },
      {
        type: "node",
        id: 2006531160,
        lat: -15.706214,
        lon: 46.3799647,
        label: "Abad",
      },
      ...
      {
        type: "node",
        id: 11027750469,
        lat: -15.7065943,
        lon: 46.3854314,
        label: "Arret 18",
      },
    ],
    tags: {
      colour: "orange",
      fee: "yes",
      from: "Belobaka",
      name: "Ligne 7 Plaque Mena",
      network: "Zone Urbaine",
      opening_hours: "Mo-Su 04:00-22:00",
      operator: "MAMI",
      "public_transport:version": "2",
      ref: "7",
      route: "bus",
      to: "Belobaka",
      type: "route",
    },
  },
  ...
];
  • List Stops
// maka ny lisitry ny arret bus rehetra
console.log( findStopAll() );
// result
  [
    {
      type: 'node',
      id: 6450569024,
      lat: -15.7066094,
      lon: 46.3855679,
      label: 'Imaintsoanala'
    },
    ...
  ]
  • Get Bus detail
// maka ny mombamomba ny bus iray
console.log( findBusDetailById( 16057683 ) );
  // result
  {
    type: "relation",
    id: 16057683,
    members: [
      {
        type: "node",
        id: 6450569024,
        lat: -15.7066094,
        lon: 46.3855679,
        label: "Imaintsoanala",
      },
      {
        type: "node",
        id: 2006531160,
        lat: -15.706214,
        lon: 46.3799647,
        label: "Abad",
      },
      ...
      {
        type: "node",
        id: 11027750469,
        lat: -15.7065943,
        lon: 46.3854314,
        label: "Arret 18",
      },
    ],
    tags: {
      colour: "orange",
      fee: "yes",
      from: "Belobaka",
      name: "Ligne 7 Plaque Mena",
      network: "Zone Urbaine",
      opening_hours: "Mo-Su 04:00-22:00",
      operator: "MAMI",
      "public_transport:version": "2",
      ref: "7",
      route: "bus",
      to: "Belobaka",
      type: "route",
    },
  }
  • Find The Right Bus of one stop
// maka ny lisitry ny bus mandalo @ arret iray
// ex: 2006531160 - arret bus Abad (Sotema)
console.log( findBusByOneStop( 2006531160 ) );
// result
[
  {
    type: "relation",
    id: 16057683,
    members: [
      {
        type: "node",
        id: 6450569024,
        lat: -15.7066094,
        lon: 46.3855679,
        label: "Imaintsoanala",
      },
      {
        type: "node",
        id: 2006531160,
        lat: -15.706214,
        lon: 46.3799647,
        label: "Abad",
      },
      ...
      {
        type: "node",
        id: 11027750469,
        lat: -15.7065943,
        lon: 46.3854314,
        label: "Arret 18",
      },
    ],
    tags: {
      colour: "orange",
      fee: "yes",
      from: "Belobaka",
      name: "Ligne 7 Plaque Mena",
      network: "Zone Urbaine",
      opening_hours: "Mo-Su 04:00-22:00",
      operator: "MAMI",
      "public_transport:version": "2",
      ref: "7",
      route: "bus",
      to: "Belobaka",
      type: "route",
    },
  },
  ...
];
  • Find The Right Bus of 2 stops
// maka ny lisitry ny bus mandalo @ arret roa
// ex1: 2006531160 - arret bus Abad (Sotema)
// ex2: 11029976167 - arret bus Bord (Majunga be)
console.log( findBusByTwoStop( 2006531160, 11029976167 ) );
// result
[
  {
    type: "relation",
    id: 16057683,
    members: [
      ...
      {
        type: "node",
        id: 2006531160,
        lat: -15.706214,
        lon: 46.3799647,
        label: "Abad",
      },
      ...
      {
        type: 'node',
        id: 11029976167,
        lat: -15.7211965,
        lon: 46.3047163,
        label: 'Bord'
      },
      ...
    ],
    tags: {
      colour: "orange",
      fee: "yes",
      from: "Belobaka",
      name: "Ligne 7 Plaque Mena",
      network: "Zone Urbaine",
      opening_hours: "Mo-Su 04:00-22:00",
      operator: "MAMI",
      "public_transport:version": "2",
      ref: "7",
      route: "bus",
      to: "Belobaka",
      type: "route",
    },
  },
  ...
];
  • List Bus
// maka ny lisitry ny koperativa ny bus rehetra
console.log( findOperatorAll() );
// result
[
  'MAMI',
  'KOFIBE/ KOFIMARE',
  'MAHATSINJO',
  'TAMBATRA',
  'NY ANTSIKA',
  'AMBONDRONA',
  'MIRAY',
  'KOFIMARE',
  'AINA'
]
  • Find The Right Bus of 2 stop's label
// maka ny lisitry ny bus mandalo @ arret roa
// ex1: 'abad' - arret bus Abad (Sotema)
// ex2: 'bord' - arret bus Bord (Majunga be)
console.log( findBusByTwoStopLabel( 'abad', 'bord' ) );
// result
[
  {
    type: "relation",
    id: 16057683,
    members: [
      ...
      {
        type: "node",
        id: 2006531160,
        lat: -15.706214,
        lon: 46.3799647,
        label: "Abad",
      },
      ...
      {
        type: 'node',
        id: 11029976167,
        lat: -15.7211965,
        lon: 46.3047163,
        label: 'Bord'
      },
      ...
    ],
    tags: {
      colour: "orange",
      fee: "yes",
      from: "Belobaka",
      name: "Ligne 7 Plaque Mena",
      network: "Zone Urbaine",
      opening_hours: "Mo-Su 04:00-22:00",
      operator: "MAMI",
      "public_transport:version": "2",
      ref: "7",
      route: "bus",
      to: "Belobaka",
      type: "route",
    },
  },
  ...
];

Mbola hanampiana azy :

  • fanavahana ireo arret bus rehetra ao anaty ny fokotany iray
  • fifindrana bus raha toa ka tsy misy bus mivantana amin'ny arret roa (02). Oh: belobaka - petit plage => [ ligne 7 mifindra ligne 12 na ligne 15 ]