Icontem

File: test/test.js

Recommend this page to a friend!
  Classes of Leonardo Mauro Pereira Moraes  >  Super Mario Maker Profile  >  test/test.js  >  Download  
File: test/test.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Super Mario Maker Profile
Retrieve a Super Mario Maker profile
Author: By
Last change: fix condition patterns issues
fix nodejs pattern issues
Date: 5 months ago
Size: 604 bytes
 

Contents

Class file image Download
/* Include */
const SmmMakerProfile = require("../lib/SmmMakerProfile.js");

// ## Try capture some data from ID Nintendo user
// link: https://supermariomakerbookmark.nintendo.net/profile/BRKsEDU
console.time("test");

//SmmMakerProfile.getMetaContent("BRKsEDU", function(error, makerProfile) {
SmmMakerProfile.getMetaCoursesContent("BRKsEDU", function(error, makerProfile) {
//SmmMakerProfile.getAllContent("BRKsEDU", function(error, makerProfile) {
    if (error) { console.log("> Page not found or Nintendo ID inexistent."); }
    else { console.log(makerProfile); }
    console.timeEnd("test");
});