Nonstop Progressive Marxism

    alphabetize

    1.0.6 • Public • Published

    alphabetize

    browser support

    sort a string alphabeticallly

    usage

    with node

    var alph = require('alphabetize');
     
    console.log('i am a happy string! maybe the happiest?');
    //-> 'a am happiest happy i maybe string the'

    or from the command line

    > alphabetize file.txt
    ##-> a file of test text 
    > echo "dogs vs cats" | alphabetize
    ##-> cats dogs vs 

    or in the browser

    <script src="alphabetize.js"></script>
    <script>
    var txt = document.getElementById('txt');
    txt.textContent = alphabetize(txt.textContent);
    </script> 

    license

    MIT

    Install

    npm i alphabetize

    DownloadsWeekly Downloads

    23

    Version

    1.0.6

    License

    MIT

    Last publish

    Collaborators

    • malantonio