https://github.com/gigatoride/node-utopian-rocks
https://www.npmjs.com/package/node-utopian-rocks
I've realized that utopian.io official API isn't available for a while, And all existing Utopian API modules can't be functioning while API provider isn't available, I also have realized many people were asking for API which is only available at utopian.rocks, however, I couldn't find any module for Node.js API wrapper available for it then I've decided to make a module for it which gonna make any projects depends on Utopian API comes back to work easily by just installing that alternative module and following simple usage instructions.
Install using npm:
npm install node-utopian-rocks
Then
const utopian = require('node-utopian-rocks');
Calling Asynchronously:
// Retrieve posts by category, status
await utopian.getPosts('development', 'reviewed')
// Retrieve posts by category, status, author, non-staff-picks
await utopian.getPosts('development', 'reviewed', 'gigatoride', null, false)
// Retrieve moderators
await utopian.getModerators();
// Retrieve Statistics by today for task requests
await utopian.getStats('today', 'task_requests');
You can also do it using then()
for more information please visit README.md
For testing using jest
npm test
Results:
the project has been published recently
https://github.com/gigatoride/node-utopian-rocks/commits/master
Feel free to contribute to the project by opening a new pull request or open a new issue if there is any bug.
To get in touch with me please use my email address in my GitHub profile.