Have ideas to improve npm?Join in the discussion! »

    shufflr

    2.0.11 • Public • Published

    shufflr

    NPM Shufflr CI/CD

    Shuffle lists based on Fisher-Yates shuffle algorithm

    Using shufflr

    To use shufflr in your project simply follow this steps:

    Install shufflr:

        npm install shufflr

    Import shufflr in your JavaScript code:

        var shufflr = require('shufflr');

    Or:

        import { shuffle } from 'shufflr';

    Use shuffle method with an array to get a copy of it shuffled:

        var shuffledArray = shufflr.shuffle(originalArray)

    Or:

        var shuffledArray = shuffle(originalArray)

    Develop

    After cloning the repository, install the dev dependencies (shufflr does not have runtime dependencies):

        npm install

    To run shufflr tests simply run:

        npm run test

    Install

    npm i shufflr

    DownloadsWeekly Downloads

    22

    Version

    2.0.11

    License

    MIT

    Unpacked Size

    5.04 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar