1.0.0 • Published 3 years ago

@xerafiu/brisk v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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