algory
    TypeScript icon, indicating that this package has built-in type declarations

    1.7.7 • Public • Published

    Algory

    An Auto-Curried General purpose library composed of algorithms and data structures for JavaScript, TypeScript and Node.js

    How to Import libraries

    Import all the function in TypeScript using import keyword:

    import * as λ from 'algory'
    λ.sumOfCubes(2, 3)
    λ.sumOfCubes(2)(3)

    Import specific functions in TypeScript using import keyword:

    import { mergeSort, avgLst } from 'algory'
    const arr = mergeSort([4, -32, 12, 0, 1, 44, 3])
    const arr2 = avgLst([4, -32, 12, 0, 1, 44, 3])

    Import all functions in TypeScript using require keyword:

    const λ = require('algory')
    λ.sumOfCubes(2, 3))
    λ.sumOfCubes(2)(3)

    Import all functions in JavaScript using require keyword:

    const λ = require('algory')
    λ.sumOfCubes(2, 3))
    Tests
    Run all tests: npm t or npm test
    Run a specific test: npm test -- SomeFile.test.ts or jest SomeFile.test.ts or npm test -t SomeFile.test.ts
    Help: npm test -- --help or jest help
    License
    • This project is licensed under the terms of the MIT license.
    Contributors
    Anurag Muthyam <anu.drumcoder@gmail.com>

    Keywords

    none

    Install

    npm i algory

    DownloadsWeekly Downloads

    1

    Version

    1.7.7

    License

    ISC

    Unpacked Size

    85.7 kB

    Total Files

    99

    Last publish

    Collaborators

    • amuthyam