Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Shorturl Service for Wikipedia Projects by Node.js
JavaScript
Tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
lib
public
vendor
CHANGES
README
settings.json
shortify.js

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, 5 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

Something went wrong with that request. Please try again.