- What is the project about?
This project is a rewritten version of the Utopian API NPM package made by Nico Wehmöller but whith the support of Typescript out of the box.
- Differences
One of the main difference between the original one and this version is that this one is dependencies free! You do not need to rely in third party libraries to actually use the library. The advantage of this is that is one day one of the third party library get deprecated or it has a security bug, the code should be rebased.
- Benefits
- Roadmap
Using this library is just simple as the original one. So, I wrote a detailed-friendly steps on how to use it.
To install the library, you should only run the following command:
npm install utopian-api-ts --save
In javascript, you just need to require the library and you can start using it right away.
var utopiansdk = require('utopian-api-ts');
utopiansdk.getModerators(function(data) {
console.log(data);
});
For Typescript, import the library as a variable.
import * as utopiansdk from 'utopian-api-ts';
utopiansdk.getModerators((data) => {
console.log(data);
});
And in an AMD environment, it can be used the following way:
define(function(require,exports,module){
var utopiansdk = require('utopian-api-ts');
});
Contributors can get started by making a fork of my repo utopian-api-typescript, checkout a new branch, edit, commit, and make a pull request.
git clone https://github.com//utopian-api-typescript
cd ./utopian-api-typescript
git checkout -b <new-branch>
...
git add -A
git commit -<BRANCH-NAME> "changes"
git push origin <BRANCH-NAME>
Then make a pull request.