npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mpm.marvel

v0.0.2

Published

marvel api client framework

Downloads

6

Readme

mpm.marvel

NPM

Marvel API client for NodeJS !

mpm.marvel helps developpers request data from the Marvel API. With mpm.marvel, developpers no longer need to make complicated raw http request calls to query the Marvel API !

mpm.marvel is written in coffee-script and compiled in readable Javascript.

more infos : http://developer.marvel.com/documentation/getting_started

author: mparaiso [email protected]

version: 0.0.2

INSTALLATION

with npm :

npm install mpm.marvel

USAGE


	var assert = require('assert');
	var marvel = require('mpm.marvel');

	var marvelClient = marvel(yourPublicKey,yourPrivateKey);

	// get characters
	marvelClient.characters(function(err,result){
		assert.equal(result.code,200);
	});

API

CHARACTERS

marvelClient.characters(callback) : Fetches lists of characters.

marvelClient.characters(function(err,result){
		assert.equal(result.code,200);
	});

marvelClient.characters(optionHash,callback)

marvelClient.characters({limit:3},function(err,result){});

marvelClient.characters(characterId,callback) : Fetches a single character by id.

marvelClient.characters(someCharacterId,function(err,res){});
marvelClient.characters({id:someCharacterId},function(err,res){});

marvelClient.characters(characterId).comics(callback) : Fetches lists of comics filtered by a character id.

marvelClient.characters(someCharacterId).comics(function(err,res){});

marvelClient.characters(characterId).comics(optionsHash,callback)

marvelClient.characters(characterId).stories(callback) : Fetches lists of stories filtered by a character id.

marvelClient.characters(someCharacterId).stories(function(err,res){});

marvelClient.characters(characterId).stories(optionsHash,callback)

marvelClient.characters(characterId).series(callback) : Fetches lists of series filtered by a character id.

marvelClient.characters(someCharacterId).series(function(err,res){});

marvelClient.characters(characterId).series(optionsHash,callback)

marvelClient.characters(characterId).events(callback) : Fetches lists of events filtered by a character id.

marvelClient.characters(someCharacterId).events(function(err,res){});

marvelClient.characters(characterId).events(optionsHash,callback)

COMICS

marvelClient.comics(callback) : Fetches lists of comics.

marvelClient.comics(function(error,result){});

marvelClient.comics(options,callback)

marvelClient.comics({limit:5},function(error,result){});

marvelClient.comics(comicId) : Fetches a single comic by id.

marvelClient.comics(comicId,function(error,result){});
marvelClient.comics({id:comicId},function(error,result){});
	

	// GET /v1/public/comics/{comicId}/characters Fetches lists of characters filtered by a comic id.

	marvelClient.comics(comicId).characters(function(error,result){});

	// GET /v1/public/comics/{comicId}/creators Fetches lists of creators filtered by a comic id.

	marvelClient.comics(comicId).creators(function(error,result){});

	// GET /v1/public/comics/{comicId}/events Fetches lists of events filtered by a comic id.

	marvelClient.comics(comicId).events(function(error,result){});

	// GET /v1/public/comics/{comicId}/stories Fetches lists of stories filtered by a comic id.
	
	marvelClient.comics({id:comicId,limit:5}).stories(function(error,result){});
AND SO ON
GET /v1/public/creators Fetches lists of creators.
GET /v1/public/creators/{creatorId} Fetches a single creator by id.
GET /v1/public/creators/{creatorId}/comics Fetches lists of comics filtered by a creator id.
GET /v1/public/creators/{creatorId}/events Fetches lists of events filtered by a creator id.
GET /v1/public/creators/{creatorId}/series Fetches lists of series filtered by a creator id.
GET /v1/public/creators/{creatorId}/stories Fetches lists of stories filtered by a creator id.
GET /v1/public/events Fetches lists of events.
GET /v1/public/events/{eventId} Fetches a single event by id.
GET /v1/public/events/{eventId}/characters Fetches lists of characters filtered by an event id.
GET /v1/public/events/{eventId}/comics Fetches lists of comics filtered by an event id.
GET /v1/public/events/{eventId}/creators Fetches lists of creators filtered by an event id.
GET /v1/public/events/{eventId}/series Fetches lists of series filtered by an event id.
GET /v1/public/events/{eventId}/stories Fetches lists of stories filtered by an event id.
GET /v1/public/series Fetches lists of series.
GET /v1/public/series/{seriesId} Fetches a single comic series by id.
GET /v1/public/series/{seriesId}/characters Fetches lists of characters filtered by a series id.
GET /v1/public/series/{seriesId}/comics Fetches lists of comics filtered by a series id.
GET /v1/public/series/{seriesId}/creators Fetches lists of creators filtered by a series id.
GET /v1/public/series/{seriesId}/events Fetches lists of events filtered by a series id.
GET /v1/public/series/{seriesId}/stories Fetches lists of stories filtered by a series id.
GET /v1/public/stories Fetches lists of stories.
GET /v1/public/stories/{storyId} Fetches a single comic story by id.
GET /v1/public/stories/{storyId}/characters Fetches lists of characters filtered by a story id.
GET /v1/public/stories/{storyId}/comics Fetches lists of comics filtered by a story id.
GET /v1/public/stories/{storyId}/creators Fetches lists of creators filtered by a story id.
GET /v1/public/stories/{storyId}/events Fetches lists of events filtered by a story id.