Skip to content

A library to gain time while developing in Javascript

License

Notifications You must be signed in to change notification settings

XeraFiu-YTB/Brisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@xerafiu/brisk

A library to gain time while developing in Javascript

npm (scoped)

Install

npm i @xerafiu/brisk

Usage

This tool has a kernel making it possible to load the different functions of the different categories which allows the community of developers to participate easily in improving this tool.

The structure is :

  • category (folder)
    • subcategory (file)
      • functions (code)
const Brisk = require("@xerafiu/brisk")
//Access Math basic functions via the "math" category and the "basic" subcategory
let result = Brisk.Math.Basic.add(3, 6)

console.log(`The result of the addition is ${result} !`)

//You can directly access to a category like this :
const { Math } = require("@xerafiu/brisk")

While waiting for me to do some documentation, you can display the list of categories and subcategories like this :

const brisk = require("@xerafiu/brisk")

let categories = Object.getOwnPropertyNames(brisk)
for(let category of categories) {
    let subcategories = Object.getOwnPropertyNames(brisk[category])
    for(let subcategory of subcategories) {
        let functions = Object.getOwnPropertyNames(brisk[category][subcategory])
        console.log(`Category: ${category} | Subcategory: ${subcategory} | functions: ${functions.join(", ")}`)
    }
}

License

MIT

About

A library to gain time while developing in Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published