a-progressions
v1.0.0
Published
An essential NPM package providing core utilities and SDK helpers for managing progressions within Leumas Tech LLC's ecosystem. Includes CSV handling, progression data retrieval, and Atlas JSON processing.
Downloads
20
Maintainers
Readme
leumas-progressions
An NPM package for progression-related utilities and SDK helpers.
Installation
npm install leumas-progressionsUsage
const { toCSV, saveCSV, getAllProgressions, getAProgression } = require('leumas-progressions');
// Example usage
const data = [{ id: 1, name: 'Test' }];
const csvString = toCSV(data, ['id', 'name']);
console.log(csvString);
const all = getAllProgressions();
console.log(all);API
toCSV(rows, columns): Converts an array of objects to a CSV string.saveCSV(rows, columns, outPath): Saves an array of objects to a CSV file.getAllProgressions(): Placeholder function to get all progressions.getAProgression(id): Placeholder function to get a single progression by ID.
Progression Structure
A progression object has the following fields:
id(string): A unique identifier for the progression.name(string): The name or title of the progression.status(string): The current status of the progression (e.g., 'completed', 'in-progress', 'not-started').category(string): The category the progression belongs to (e.g., 'frontend', 'backend', 'devops').
Testing
To run tests:
npm test