@idikaeliada/futo-departments
v1.0.0
Published
Faculties and departments data for the Federal University of Technology Owerri (FUTO), with TypeScript types and helper utilities.
Downloads
92
Maintainers
Readme
futo-departments
TypeScript-first data package for FUTO (Federal University of Technology Owerri) faculties and departments — with runtime helpers and full type safety.
Installation
npm install futo-departments
# or
yarn add futo-departments
# or
pnpm add futo-departmentsUsage
Data
import { faculties, departments, facultyDepartments } from "futo-departments";
console.log(faculties); // readonly string[] of all 12 schools/colleges
console.log(departments); // readonly string[] of all ~58 departments
console.log(facultyDepartments["School of Information & Communication Technology"]);
// ["Computer Science", "Software Engineering", "Cyber Security", "Information Technology"]Helper functions
import {
getDepartmentsByFaculty,
getFacultyByDepartment,
isValidDepartment,
isValidFaculty,
} from "futo-departments";
getDepartmentsByFaculty("School of Physical Sciences");
// ["Mathematics", "Physics", "Chemistry", "Statistics", "Science Laboratory Technology"]
getFacultyByDepartment("Computer Science");
// "School of Information & Communication Technology"
isValidDepartment("Software Engineering"); // true
isValidFaculty("School of Medicine"); // falseTypeScript types
import type { Faculty, Department } from "futo-departments";
const myFaculty: Faculty = "College of Medicine"; // ✅
const myDept: Department = "Human Anatomy"; // ✅Publishing to npm
- Update
"author"inpackage.json - Run
npm run build npm loginnpm publish
For a scoped package (e.g.
@yourname/futo-departments), update the"name"field and runnpm publish --access public.
License
MIT
