Using it in a browser is quite simple:
//=> "like-this"//=> "or-like-that-dada"// or something more interesing like that:var boom = ;boomalphabets //=> collection of alphabets and rulesboom //=> 'love-me'boom //=> converts non Latin chars using alphabets (cyrilic and german chars are supported by default). ex. 'Привет' -> 'Privet'boom /=>boom /=> identical to url
For Nodejs there two ways to install the thingy, NPM is one of them:
$ npm install friendlyjs
Git clone is another one:
$ git clone email@example.com:ludopoli/friendlyjs.git
And then just let the node know about it:
var friendly = // npmvar friendly = // manual install
If you want to use the thing in the browser, well, just reference the file, this will create a 'friendly' variable in the global score.
is as easy as:
var boom = ;boomalphabetssibirian = "^-a,@-o,f-j";boom //=> 'loveameo'boom /=> 'lov-eameo'
Copyright (c) 2011 Ludopoli <firstname.lastname@example.org>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.