Froren / realtorca

API wrapper for realtor.ca MLS website
199 stars 76 forks source link

Convert to ES style #36

Open gajen007 opened 2 years ago

gajen007 commented 2 years ago

import pkg from 'realtorca/realtorca.js'; const { buildUrl, optionsFromUrl } = pkg; //This is appropriate instead of the following... const realtor = require('realtorca');

//Also... pkg.post(opts) //instead of realtor.post(opts)