A Shorturl Service for Wikipedia Projects by Node.js
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app change log format Aug 9, 2010
config Added Arabic translation May 21, 2012
lib change cache.js to unix mode Aug 11, 2010
public Merge pull request #7 from ppapadeas/master Aug 4, 2011
vendor empty 404 to avoid error Aug 9, 2010
CHANGES
README Added name and language on the credits Aug 4, 2011
settings.json make cache configurable Aug 8, 2010
shortify.js more config and README Aug 8, 2010

README

==A Shorturl Service for Wikipedia Projects by Node.js==

For many languages which do not use Latin characters the URL of an articles in Wikipedia might be very long.
We created this small project to help people solve this problem.

It uses the MediaWiki API call to get pageId by the title, and then convert pageId by base 36 to the short URL.
To reduce the frequency of API calls, a simple cache was used.

===Install===

Requirement: Node.js is installed.

Steps are as below:

* Clone the repository: git clone git://github.com/mountain/shortify.git
* Change directory to shortify: cd shortify
* Edit the settings: nano settings.json
* Start the service: node shortify.js

===Acknowledgement===

Thanks for people's contribution to localize this small software. So far, 8 languges were supported:

* mountain: Chinese language
* svick: Czech language
* mountain and Casey: English language
* Amir E. Aharoni (amire80): Hebrew language
* Sadik Khalid: Malayalam language
* Amir E. Aharoni (amire80): Russian language
* srikanthlogic: Tamil language
* Pierros Papadeas: Greek language