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

Dependents (0)

Package Sidebar

Install

npm i alphabetize

Weekly Downloads

2

Version

1.0.6

License

MIT

Last publish

Collaborators

  • malantonio