
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
This is a node.js wrapper for the Domino's pizza APIs.
The original npm module dominos has stopped being maintained and will remain at it's last stable release. For new applications please use this new npm module pizzapi. See the pretty PizzaPI documentation
This work is licenced via the DBAD Public Licence. It is a derivative work from Dominos API.
npm install pizzapi
npm install (this will install required dependancies, depending on your system may require)See the examples directory for simple apps and demonstrations on using the basic functionality.
Simply run npm test
if you have issues with this you may want to try installing mocha globally like this : npm install -g mocha
-OR for manual testing-
npm install -g mochamocha| argument | type | default | required |
|---|---|---|---|
| address | full or partial address string | null | true |
| callback | function to pass the api result to | null | true |
| type | Delivery, Carryout, all | all | false |
this yields the least accurate information
var pizzapi=require('pizzapi');
pizzapi.Util.findNearbyStores(
'63102',
'Delivery',
function(storeData){
console.log(storeData);
}
);
this yields less accurate information but is better than just using the postal code
var pizzapi=require('pizzapi');
pizzapi.Util.findNearbyStores(
'St. Louis, MO, 63102',
'Delivery',
function(storeData){
console.log(storeData);
}
);
this yields the best information and sorts stores by actual distance
var pizzapi=require('pizzapi');
pizzapi.Util.findNearbyStores(
'700 Clark Ave, St. Louis, MO, 63102',
'Delivery',
function(storeData){
console.log(storeData);
}
);
| argument | type | default | required |
|---|---|---|---|
| ID | Integer | null | true |
//Get Store Info for Store #4336
var pizzapi=require('pizzapi');
var myStore=new pizzapi.Store();
myStore.ID=4336;
myStore.getInfo(
function(storeData){
console.log(storeData);
}
);
| argument | type | default | required |
|---|---|---|---|
| callback | function to pass the api result to | null | true |
//Get Menu for Store #4336
var pizzapi=require('pizzapi');
var myStore=new pizzapi.Store();
myStore.ID=4336;
myStore.getMenu(
function(storeData){
console.log(storeData);
}
);
| argument | type | default | required |
|---|---|---|---|
| callback | function to pass the api result to | null | true |
Returns a list of all items the store offers in an JSON array, formatted {Code: Friendly Name}
When creating a new Address object, there are many ways to instantiate the object! Order does matter with strings and arrays.
The following are examples of the methods:
var fullAddress = new Address('900 Clark Ave, St. Louis, MO, 63102');
//or
var partAddress = new Address('St. Louis, MO, 63102');
//or
var onlyZip = new Address('63102');
//or
var onlyCity = new Address('St. Louis');
####By JSON
var jsonAddress = new Address({
Street: '900 Clark Ave',
City: 'St. Louis',
Region: 'MO',
PostalCode: 63102
});
var arrayAddress = new Address(['900 Clark Ave', 'St. Louis', 'MO', '63102']);
| argument | type | default |
|---|---|---|
| address | Address | null |
| firstName | String | '' |
| lastName | String | '' |
| String | '' | |
| phone | String | '' |
var customer = new Customer({
address: someAddressObj,
firstName: 'Barack',
lastName: 'Obama',
phone: '1-800-The-White-House',
email: 'br'
})
Item
====
|argument|type|default|
|--------|----|-------|
|code|String|null|
|quantity|Integer|1|
|options|Array|[]|
```javascript
var newItem = new Item({ code: '14SCREEN' });
//and so on...
This is the class that every other class feeds into.
| argument | type | default |
|---|---|---|
| code | String | null |
| quantity | Integer | 1 |
| options | Array | [] |
var pizzapi=require('pizzapi');
var thePresident = new pizzapi.Customer(
{
firstName: 'Barack',
lastName: 'Obama',
address: '700 Pennsylvania Avenue, Washington, DC',
email: 'barack@whitehouse.gov'
}
);
var order = new pizzapi.Order(
{
customer: thePresident,
storeID: myStore.ID,
deliveryMethod: 'Delivery' //(or 'Carryout')
}
);
order.addItem(
new pizzapi.Item(
{
code: '14SCREEN',
options: {},
quantity: 1
}
)
);
This step is *Strongly recommended
order.validate(
function(result) {
console.log("We did it!");
}
);
order.price(
function(result) {
console.log("Price!")
}
);
At least one item must've been added to place an order.
order.place(
function(result) {
console.log("Order placed!");
}
);
### By Phone
|argument|type|default|required|
|--------|----|-------|--------|
|phone|Phone number string or int|null|true|
|callback|function to pass the api result to|null|true|
var pizzapi=require('pizzapi');
pizzapi.Track.byPhone(
2024561111,
function(pizzaData){
console.log(pizzaData);
}
);
### By orderKey
|argument|type|default|required|
|--------|----|-------|--------|
|orderKey|string or int|null|true|
|storeID|sting or int|null|true|
|callback|function to pass the api result to|null|true|
var pizzapi=require('pizzapi');
pizzapi.Track.byId(
123456,
12345,
function(pizzaData){
console.log(pizzaData)
}
);
Depricated due to massive overhauling by @madelinecameron
Still in npm for use of last version in production as dominos
npm install dominos
FAQs
node js API for Domino's pizza
We found that pizzapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.