galsenify
galsenify copied to clipboard
π« Galsenify is a package NPM that allows you to easily manipulate data about Senegal, it offers a lot of information about country of Teranga.
Galsenify π¦π«
Lire en Français
Galsenify is a package that allows you to easily manipulate data about Senegal.
It offers a lot of information about Senegal.
- Current version β‘οΈ 1.0.0
Install π₯
via NPM
npm i galsenify
via YARN
yarn add galsenify
via PNPM
pnpm i galsenify
Usage π‘
import galsenify from "galsenify";
// or
const galsenify = require("galsenify");
// get all Senegal's regions
console.log(galsenify.regions());
// results
[
"Dakar",
"Diourbel",
"Fatick",
"Kaffrine",
"Kaolack",
"KΓ©dougou",
"Kolda",
"Louga",
"Matam",
"Saint-Louis",
"SΓ©dhiou",
"Tambacounda",
"Thies",
"Ziguinchor",
];
List of available commands π§©
// Get all data about Senegal.
console.log(galsenify.sn());
// Get all national language.
console.log(galsenify.languesNationales());
// Get all data about region.
console.log(galsenify.rg());
// Get all regions.
console.log(galsenify.regions());
// Get departments by region.
// replace "region" by an existing region (example : Dakar)
console.log(galsenify.departments("region"));
// Get populations by region.
// replace "region" by an existing region (example : thies)
console.log(galsenify.population("region"));
// Get area by region.
// replace "region" by an existing region (example : KAOLACK)
console.log(galsenify.superficie("region"));
// Get all regions code.
console.log(galsenify.codes());
Example β
Galsenify Demo is a demo project to show you how to use the Galsenify package in Next.js project presented at #LiveKoorGalsenDEV event, you can see live here.
Author π
Created by Daouda BA
You can buy me a coffee β and help the project to grow up ππΎ
Contributing π
β οΈ If you want contribute on this project, please check firt the Contributing Guide.
If you find π or you have a π‘ about the evolution of this project, you can open an issue.
I'm also available on Twitter.
A special thanks to Dame LEYE (Honorable Con) for his contribution on this project.
Thanks to all contributors ππ½
Changelog π
You can also consult the Changelog to see the different changes and evolution between versions.
Licence π«
This package is released under the MIT Licence β