Compare commits
	
		
			1 Commits
		
	
	
		
			8a3820b9c3
			...
			new-redesi
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d8a5d93342 | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,3 +1,2 @@
 | 
				
			|||||||
.DS_Store
 | 
					.DS_Store
 | 
				
			||||||
node_modules
 | 
					node_modules
 | 
				
			||||||
build
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,35 +6,17 @@
 | 
				
			|||||||
      depth: 15
 | 
					      depth: 15
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  test:
 | 
					 | 
				
			||||||
    image: docker
 | 
					 | 
				
			||||||
    commands:
 | 
					 | 
				
			||||||
      - apk add curl
 | 
					 | 
				
			||||||
      - docker build .
 | 
					 | 
				
			||||||
    when:
 | 
					 | 
				
			||||||
      - event: push
 | 
					 | 
				
			||||||
        branch:
 | 
					 | 
				
			||||||
          exclude: ["main"]
 | 
					 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - /var/run/docker.sock:/var/run/docker.sock
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  build:
 | 
					  build:
 | 
				
			||||||
    image: docker
 | 
					    image: docker
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - apk add curl
 | 
					      - apk add curl
 | 
				
			||||||
      - docker login -u docker -p $DOCKER_PASSWORD registry.yetaga.in
 | 
					      - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD registry.yetaga.in
 | 
				
			||||||
      - docker build -t registry.yetaga.in/bookstores:latest .
 | 
					      - docker build -t registry.yetaga.in/bookstores:latest .
 | 
				
			||||||
      - docker push registry.yetaga.in/bookstores:latest
 | 
					      - docker push registry.yetaga.in/bookstores:latest
 | 
				
			||||||
      - 'curl http://100.113.98.36:4000/api/fetch -H "Authorization: Bearer $COMPOSE_TOKEN"'
 | 
					      - 'curl http://100.113.98.36:4000/api/fetch -H "Authorization: Bearer $COMPOSE_TOKEN"'
 | 
				
			||||||
      - 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"'
 | 
					      - 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"'
 | 
				
			||||||
    environment:
 | 
					    secrets: [docker_username, docker_password, compose_token]
 | 
				
			||||||
      DOCKER_PASSWORD:
 | 
					 | 
				
			||||||
        from_secret: docker_password
 | 
					 | 
				
			||||||
      COMPOSE_TOKEN:
 | 
					 | 
				
			||||||
        from_secret: compose_token
 | 
					 | 
				
			||||||
    when:
 | 
					    when:
 | 
				
			||||||
      - event: push
 | 
					      branch: "master"
 | 
				
			||||||
        branch:
 | 
					 | 
				
			||||||
          include: ["main"]
 | 
					 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - /var/run/docker.sock:/var/run/docker.sock
 | 
					      - /var/run/docker.sock:/var/run/docker.sock
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +1,12 @@
 | 
				
			|||||||
FROM node:24 AS builder
 | 
					FROM node:20 AS builder
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY . /src
 | 
					COPY . /src
 | 
				
			||||||
WORKDIR /src
 | 
					WORKDIR /src
 | 
				
			||||||
RUN npm install && node ./index.js
 | 
					RUN npm install && node ./index.js
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM caddy:2.10.0
 | 
					FROM caddy:2.7.5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY --from=builder /src/build /usr/share/caddy
 | 
					COPY img /usr/share/caddy/img
 | 
				
			||||||
 | 
					COPY css /usr/share/caddy/css
 | 
				
			||||||
 | 
					COPY stores.json robots.txt /usr/share/caddy/
 | 
				
			||||||
 | 
					COPY --from=builder /src/index.html /usr/share/caddy/index.html
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,38 +1,33 @@
 | 
				
			|||||||
/* Page Specific CSS */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
body {
 | 
					body {
 | 
				
			||||||
  font-family: "Lato", sans-serif;
 | 
					  font-family: "Lato", sans-serif;
 | 
				
			||||||
  background: #fff;
 | 
					  background: #fff;
 | 
				
			||||||
  color: #333;
 | 
					  color: #333;
 | 
				
			||||||
  font-size: 18px;
 | 
					  font-size: 16px;
 | 
				
			||||||
  margin: 0px;
 | 
					  margin: 0px;
 | 
				
			||||||
  padding: 20px 0px;
 | 
					  padding: 0px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
h1 {
 | 
					h1 {
 | 
				
			||||||
  font-size: 80px;
 | 
					  font-size: 40px;
 | 
				
			||||||
  font-family: "Acme", sans-serif;
 | 
					  font-family: "Acme", sans-serif;
 | 
				
			||||||
  font-weight: normal;
 | 
					  font-weight: normal;
 | 
				
			||||||
  margin: 0px;
 | 
					  margin: 0px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
h2 {
 | 
					h2 {
 | 
				
			||||||
  font-size: 40px;
 | 
					  font-size: 30px;
 | 
				
			||||||
  font-family: "Acme", sans-serif;
 | 
					  font-family: "Acme", sans-serif;
 | 
				
			||||||
  font-weight: normal;
 | 
					  font-weight: normal;
 | 
				
			||||||
  margin: 0px 0px;
 | 
					  margin: 0px 0px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
h3 {
 | 
					h3 {
 | 
				
			||||||
  font-family: "Acme", sans-serif;
 | 
					  font-family: "Acme", sans-serif;
 | 
				
			||||||
  font-size: 30px;
 | 
					  font-size: 20px;
 | 
				
			||||||
  margin: 10px 0px;
 | 
					  margin: 10px 0px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
h4 {
 | 
					h4 {
 | 
				
			||||||
  font-family: "Lato", sans-serif;
 | 
					  font-family: "Lato", sans-serif;
 | 
				
			||||||
  font-size: 24px;
 | 
					  font-size: 14px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
img {
 | 
					 | 
				
			||||||
  width: 100%;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
p a,
 | 
					p a,
 | 
				
			||||||
a {
 | 
					a {
 | 
				
			||||||
  color: #333;
 | 
					  color: #333;
 | 
				
			||||||
@@ -43,10 +38,6 @@ a {
 | 
				
			|||||||
a:hover {
 | 
					a:hover {
 | 
				
			||||||
  color: #47ccfc;
 | 
					  color: #47ccfc;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
small {
 | 
					 | 
				
			||||||
  padding: 10px 0px;
 | 
					 | 
				
			||||||
  font-size: 10px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
p {
 | 
					p {
 | 
				
			||||||
  margin: 0px;
 | 
					  margin: 0px;
 | 
				
			||||||
  padding: 0px;
 | 
					  padding: 0px;
 | 
				
			||||||
@@ -56,22 +47,14 @@ li {
 | 
				
			|||||||
  line-height: 19px;
 | 
					  line-height: 19px;
 | 
				
			||||||
  font-size: 15px;
 | 
					  font-size: 15px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
ol {
 | 
					 | 
				
			||||||
  line-height: 24px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
.clearfix {
 | 
					 | 
				
			||||||
  clear: both;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
.hidden {
 | 
					.hidden {
 | 
				
			||||||
  display: none;
 | 
					  display: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#map {
 | 
					#map {
 | 
				
			||||||
  height: 500px;
 | 
					  height: 100vh;
 | 
				
			||||||
  width: 480px;
 | 
					  width: 100%;
 | 
				
			||||||
  min-width: 300px;
 | 
					 | 
				
			||||||
  background: #ffffff;
 | 
					  background: #ffffff;
 | 
				
			||||||
  float: left;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#map a {
 | 
					#map a {
 | 
				
			||||||
  border: none;
 | 
					  border: none;
 | 
				
			||||||
@@ -83,13 +66,19 @@ ol {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#wrapper {
 | 
					#wrapper {
 | 
				
			||||||
  margin: 0px auto;
 | 
					  max-width: 500px;
 | 
				
			||||||
  padding: 40px;
 | 
					  position: absolute;
 | 
				
			||||||
  max-width: 1000px;
 | 
					  top: 10px;
 | 
				
			||||||
 | 
					  right: 10px;
 | 
				
			||||||
 | 
					  bottom: 10px;
 | 
				
			||||||
 | 
					  overflow: scroll;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.container {
 | 
					.bubble {
 | 
				
			||||||
  margin: 24px 0px;
 | 
					  background-color: white;
 | 
				
			||||||
 | 
					  margin: 10px 0px;
 | 
				
			||||||
 | 
					  padding: 10px;
 | 
				
			||||||
 | 
					  border-radius: 3px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ul.nav {
 | 
					ul.nav {
 | 
				
			||||||
@@ -105,7 +94,7 @@ ul.nav li {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
ul.nav li:not(:first-child) {
 | 
					ul.nav li:not(:first-child) {
 | 
				
			||||||
  border-left: 1px #333 solid;
 | 
					  border-left: 1px #333 solid;
 | 
				
			||||||
  padding-left: 10px;
 | 
					  padding-left: 5px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
ul.nav li h2 {
 | 
					ul.nav li h2 {
 | 
				
			||||||
  font-family: "Lato";
 | 
					  font-family: "Lato";
 | 
				
			||||||
@@ -126,15 +115,9 @@ ul.nav li a:hover {
 | 
				
			|||||||
  font-weight: 700;
 | 
					  font-weight: 700;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#selected {
 | 
					 | 
				
			||||||
  max-width: 500px;
 | 
					 | 
				
			||||||
  width: 100%;
 | 
					 | 
				
			||||||
  float: left;
 | 
					 | 
				
			||||||
  padding: 5px 10px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
#selected .description {
 | 
					#selected .description {
 | 
				
			||||||
 | 
					  padding-top: 7px;
 | 
				
			||||||
  font-size: 16px;
 | 
					  font-size: 16px;
 | 
				
			||||||
  padding: 4px 0px;
 | 
					 | 
				
			||||||
  line-height: 22px;
 | 
					  line-height: 22px;
 | 
				
			||||||
  text-align: justify;
 | 
					  text-align: justify;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -143,27 +126,17 @@ ul.nav li a:hover {
 | 
				
			|||||||
  margin: 15px 0px;
 | 
					  margin: 15px 0px;
 | 
				
			||||||
  padding: 0px;
 | 
					  padding: 0px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
#info {
 | 
					 | 
				
			||||||
  max-width: 500px;
 | 
					 | 
				
			||||||
  width: 100%;
 | 
					 | 
				
			||||||
  float: left;
 | 
					 | 
				
			||||||
  padding: 5px 10px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
.storeDetails {
 | 
					.storeDetails {
 | 
				
			||||||
  font-size: 15px;
 | 
					  font-size: 15px;
 | 
				
			||||||
  display: inline;
 | 
					  display: inline;
 | 
				
			||||||
  padding-right: 6px;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#info p {
 | 
					#info p {
 | 
				
			||||||
  font-size: 15px;
 | 
					  font-size: 15px;
 | 
				
			||||||
  padding: 4px;
 | 
					 | 
				
			||||||
  line-height: 22px;
 | 
					  line-height: 22px;
 | 
				
			||||||
  text-align: justify;
 | 
					  text-align: justify;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#info details {
 | 
					#info details {
 | 
				
			||||||
  font-size: 15px;
 | 
					  font-size: 15px;
 | 
				
			||||||
  padding: 4px;
 | 
					 | 
				
			||||||
  line-height: 22px;
 | 
					  line-height: 22px;
 | 
				
			||||||
  text-align: justify;
 | 
					  text-align: justify;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -174,40 +147,34 @@ ul.nav li a:hover {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#Stores {
 | 
					#Stores {
 | 
				
			||||||
  margin: 0 auto;
 | 
					  margin: 0 auto;
 | 
				
			||||||
  width: 80%;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#Stores tr {
 | 
					#Stores tr {
 | 
				
			||||||
  cursor: pointer;
 | 
					  cursor: pointer;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#Stores tr td {
 | 
					#Stores tr td {
 | 
				
			||||||
  padding: 4px 4px 12px;
 | 
					  padding: 2px 0px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#Stores tr:not(:last-child) td {
 | 
					#Stores tr:not(:last-child) td {
 | 
				
			||||||
  border-bottom: 1px #ddd solid;
 | 
					  border-bottom: 1px #ddd solid;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@media only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px) and (max-width: 1120px) {
 | 
					@media only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px) and (max-width: 1120px) {
 | 
				
			||||||
  h1 {
 | 
					 | 
				
			||||||
    font-size: 60px;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  body {
 | 
					 | 
				
			||||||
    margin: 0px;
 | 
					 | 
				
			||||||
    padding: 5px;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  #wrapper {
 | 
					  #wrapper {
 | 
				
			||||||
    max-width: 480px;
 | 
					    position: static;
 | 
				
			||||||
    padding-top: 20px;
 | 
					    padding: 10px;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  .bubble {
 | 
				
			||||||
 | 
					    margin: 0px;
 | 
				
			||||||
 | 
					    padding: 0px;
 | 
				
			||||||
 | 
					    border-radius: 0px;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  #map {
 | 
				
			||||||
 | 
					    height: 400px;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  #Stores,
 | 
					  #Stores,
 | 
				
			||||||
  #map {
 | 
					 | 
				
			||||||
    min-width: 224px;
 | 
					 | 
				
			||||||
    width: 100%;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  #map,
 | 
					  #map,
 | 
				
			||||||
  #info,
 | 
					  #info,
 | 
				
			||||||
  #selected {
 | 
					  #selected {
 | 
				
			||||||
    width: 100%;
 | 
					    width: 100%;
 | 
				
			||||||
    margin: 10px 0px;
 | 
					 | 
				
			||||||
    padding: 0;
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
							
								
								
									
										931
									
								
								index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										931
									
								
								index.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,931 @@
 | 
				
			|||||||
 | 
					<!DOCTYPE html>
 | 
				
			||||||
 | 
					<html lang="en">
 | 
				
			||||||
 | 
					  <head>
 | 
				
			||||||
 | 
					    <script
 | 
				
			||||||
 | 
					      defer=""
 | 
				
			||||||
 | 
					      data-domain="nycbookstores.org"
 | 
				
			||||||
 | 
					      src="https://stats.yetaga.in/js/script.hash.outbound-links.js"
 | 
				
			||||||
 | 
					    ></script>
 | 
				
			||||||
 | 
					    <meta charset="utf-8" />
 | 
				
			||||||
 | 
					    <meta http-equiv="x-ua-compatible" content="ie=edge" />
 | 
				
			||||||
 | 
					    <title>
 | 
				
			||||||
 | 
					      Independent Bookstores in New York City - Best Community Bookstores in NYC
 | 
				
			||||||
 | 
					    </title>
 | 
				
			||||||
 | 
					    <meta
 | 
				
			||||||
 | 
					      name="google-site-verification"
 | 
				
			||||||
 | 
					      content="hEfog9h0E3JQW91ZUZM5ayPb6DND0WbUa2_W8yTIuVw"
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					    <link rel="icon" type="image/png" href="/img/favicon.png" />
 | 
				
			||||||
 | 
					    <link rel="apple-touch-icon" href="/img/social.jpg" />
 | 
				
			||||||
 | 
					    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 | 
				
			||||||
 | 
					    <script src="https://api.mapbox.com/mapbox-gl-js/v2.13.0/mapbox-gl.js"></script>
 | 
				
			||||||
 | 
					    <link
 | 
				
			||||||
 | 
					      href="https://api.mapbox.com/mapbox-gl-js/v2.13.0/mapbox-gl.css"
 | 
				
			||||||
 | 
					      rel="stylesheet"
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					    <link
 | 
				
			||||||
 | 
					      href="https://fonts.googleapis.com/css?family=Acme|Lato&display=swap"
 | 
				
			||||||
 | 
					      rel="stylesheet"
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					    <link
 | 
				
			||||||
 | 
					      media="screen"
 | 
				
			||||||
 | 
					      rel="stylesheet"
 | 
				
			||||||
 | 
					      type="text/css"
 | 
				
			||||||
 | 
					      href="/css/site.css?1698627633277"
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					    <meta
 | 
				
			||||||
 | 
					      property="title"
 | 
				
			||||||
 | 
					      name="title"
 | 
				
			||||||
 | 
					      content="Independent Bookstores in New York City - Best Community Bookstores in NYC"
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					    <meta
 | 
				
			||||||
 | 
					      property="description"
 | 
				
			||||||
 | 
					      name="description"
 | 
				
			||||||
 | 
					      content="A guide to and map of every independent bookstore in New York City. We have a complete list of community bookstores in NYC with locations and descriptions."
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					    <meta name="twitter:card" content="summary" />
 | 
				
			||||||
 | 
					    <meta name="twitter:site" content="www.nycbookstores.org" />
 | 
				
			||||||
 | 
					    <meta name="twitter:title" content="NYC Bookstores" />
 | 
				
			||||||
 | 
					    <meta
 | 
				
			||||||
 | 
					      name="twitter:description"
 | 
				
			||||||
 | 
					      content="A Guide To The Many Independent Bookstores Of New York City"
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					    <meta
 | 
				
			||||||
 | 
					      name="twitter:image"
 | 
				
			||||||
 | 
					      content="https://www.nycbookstores.org/img/social.jpg"
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					    <meta property="og:url" content="https://www.nycbookstores.org/" />
 | 
				
			||||||
 | 
					    <meta property="og:title" content="NYC Bookstores" />
 | 
				
			||||||
 | 
					    <meta
 | 
				
			||||||
 | 
					      property="og:description"
 | 
				
			||||||
 | 
					      content="A Guide To The Many Independent Bookstores Of New York City"
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					    <meta
 | 
				
			||||||
 | 
					      property="og:image"
 | 
				
			||||||
 | 
					      content="https://www.nycbookstores.org/img/social.jpg"
 | 
				
			||||||
 | 
					    />
 | 
				
			||||||
 | 
					  </head>
 | 
				
			||||||
 | 
					  <body>
 | 
				
			||||||
 | 
					    <div id="map"></div>
 | 
				
			||||||
 | 
					    <div id="wrapper">
 | 
				
			||||||
 | 
					      <header class="bubble">
 | 
				
			||||||
 | 
					        <h1>NYC Bookstores</h1>
 | 
				
			||||||
 | 
					        <ul class="nav">
 | 
				
			||||||
 | 
					          <li>
 | 
				
			||||||
 | 
					            <a id="viewInfo" href="#info" onclick="event.preventDefault()"
 | 
				
			||||||
 | 
					              >intro</a
 | 
				
			||||||
 | 
					            >
 | 
				
			||||||
 | 
					          </li>
 | 
				
			||||||
 | 
					          <li>
 | 
				
			||||||
 | 
					            <a
 | 
				
			||||||
 | 
					              href="https://git.yetaga.in/alazyreader/nyc-bookstores/"
 | 
				
			||||||
 | 
					              target="_blank"
 | 
				
			||||||
 | 
					              >source</a
 | 
				
			||||||
 | 
					            >
 | 
				
			||||||
 | 
					          </li>
 | 
				
			||||||
 | 
					          <li>
 | 
				
			||||||
 | 
					            <a href="https://icosahedron.website/@lazyreader" target="_blank"
 | 
				
			||||||
 | 
					              >@lazyreader</a
 | 
				
			||||||
 | 
					            >
 | 
				
			||||||
 | 
					          </li>
 | 
				
			||||||
 | 
					        </ul>
 | 
				
			||||||
 | 
					      </header>
 | 
				
			||||||
 | 
					      <div id="info" class="bubble">
 | 
				
			||||||
 | 
					        <p>
 | 
				
			||||||
 | 
					          New York City loves its independent bookstores. It
 | 
				
			||||||
 | 
					          <a
 | 
				
			||||||
 | 
					            href="https://www.nytimes.com/2006/10/15/nyregion/thecity/15book.html"
 | 
				
			||||||
 | 
					            target="_blank"
 | 
				
			||||||
 | 
					            >eulogizes those that have faded</a
 | 
				
			||||||
 | 
					          >
 | 
				
			||||||
 | 
					          and celebrates when new ventures are launched. And while the historic
 | 
				
			||||||
 | 
					          <a
 | 
				
			||||||
 | 
					            href="https://untappedcities.com/2015/08/26/4th-avenue-the-history-of-nycs-book-row/"
 | 
				
			||||||
 | 
					            target="_blank"
 | 
				
			||||||
 | 
					            >Book Row may have passed away in the 80s</a
 | 
				
			||||||
 | 
					          >, there are still many indie bookstores dotting the map, across all
 | 
				
			||||||
 | 
					          five boroughs. Here, I have attempted to collect all of the
 | 
				
			||||||
 | 
					          currently-open general-interest independent booksellers in NYC. Any
 | 
				
			||||||
 | 
					          store with regular-ish hours (excluding religious booksellers and
 | 
				
			||||||
 | 
					          appointment-only rare book sellers) is included.
 | 
				
			||||||
 | 
					        </p>
 | 
				
			||||||
 | 
					        <p>
 | 
				
			||||||
 | 
					          While Manhattan and Brooklyn still lead the pack, Queens has a
 | 
				
			||||||
 | 
					          respectable number of stores, and all five boroughs are represented,
 | 
				
			||||||
 | 
					          with the Bronx and Staten Island both hosting lone independent stores.
 | 
				
			||||||
 | 
					          Lower Manhattan has the highest density of booksellers.
 | 
				
			||||||
 | 
					        </p>
 | 
				
			||||||
 | 
					        <p>
 | 
				
			||||||
 | 
					          The listings here are kept up-to-date to the best of my ability;
 | 
				
			||||||
 | 
					          however, I make no promises about either the accuracy or reliability
 | 
				
			||||||
 | 
					          of the information. If you spot an error, or I've missed a shop,
 | 
				
			||||||
 | 
					          please let me know by
 | 
				
			||||||
 | 
					          <a href="mailto:delta.mu.alpha@gmail.com" target="_blank">email</a>,
 | 
				
			||||||
 | 
					          <a href="https://icosahedron.website/@lazyreader" target="_blank"
 | 
				
			||||||
 | 
					            >mastodon</a
 | 
				
			||||||
 | 
					          >, or
 | 
				
			||||||
 | 
					          <a href="https://www.twitter.com/alazyreader" target="_blank"
 | 
				
			||||||
 | 
					            >twitter</a
 | 
				
			||||||
 | 
					          >. Originally based on the "<a
 | 
				
			||||||
 | 
					            href="https://github.com/jlord/hack-spots"
 | 
				
			||||||
 | 
					            target="_blank"
 | 
				
			||||||
 | 
					            >Hack Spots</a
 | 
				
			||||||
 | 
					          >" website by
 | 
				
			||||||
 | 
					          <a href="https://www.twitter.com/jllord" target="_blank">@jllord</a>
 | 
				
			||||||
 | 
					          (although I don't believe any of the actual underlying code still
 | 
				
			||||||
 | 
					          survives at this point).
 | 
				
			||||||
 | 
					        </p>
 | 
				
			||||||
 | 
					        <p>
 | 
				
			||||||
 | 
					          There are currently <span id="storeCount">114</span> stores indexed on
 | 
				
			||||||
 | 
					          this page. Last updated <span id="updatedOn">October 29, 2023</span>.
 | 
				
			||||||
 | 
					        </p>
 | 
				
			||||||
 | 
					        <details>
 | 
				
			||||||
 | 
					          <summary>Recent Changes</summary>
 | 
				
			||||||
 | 
					          <ul id="changesList">
 | 
				
			||||||
 | 
					            <li>
 | 
				
			||||||
 | 
					              October 26, 2023 - Return Three Lives to its original corner
 | 
				
			||||||
 | 
					              location.
 | 
				
			||||||
 | 
					            </li>
 | 
				
			||||||
 | 
					            <li>
 | 
				
			||||||
 | 
					              October 26, 2023 - Idlewild Books appears to have transitioned
 | 
				
			||||||
 | 
					              entirely to language classes as opposed to bookselling
 | 
				
			||||||
 | 
					            </li>
 | 
				
			||||||
 | 
					            <li>
 | 
				
			||||||
 | 
					              October 26, 2023 - remove Boulevard Books; correct Alabaster
 | 
				
			||||||
 | 
					              Bookshop Instagram link
 | 
				
			||||||
 | 
					            </li>
 | 
				
			||||||
 | 
					            <li>
 | 
				
			||||||
 | 
					              October 26, 2023 - Add Topos Too, currently in a "soft opening"
 | 
				
			||||||
 | 
					            </li>
 | 
				
			||||||
 | 
					          </ul>
 | 
				
			||||||
 | 
					        </details>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      <div id="selected" class="bubble hidden"></div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      <div class="bubble">
 | 
				
			||||||
 | 
					        <div id="Stores">
 | 
				
			||||||
 | 
					          <table>
 | 
				
			||||||
 | 
					            <tbody>
 | 
				
			||||||
 | 
					              <tr id="0" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">1804 Books</td>
 | 
				
			||||||
 | 
					                <td>320 W 37th St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="1" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">192 Books</td>
 | 
				
			||||||
 | 
					                <td>192 10th Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="2" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Adanne</td>
 | 
				
			||||||
 | 
					                <td>115 Ralph Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="3" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Aeon Bookstore</td>
 | 
				
			||||||
 | 
					                <td>151 East Broadway, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="4" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Alabaster Bookshop</td>
 | 
				
			||||||
 | 
					                <td>122 4th Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="5" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Albertine Books</td>
 | 
				
			||||||
 | 
					                <td>972 Fifth Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="6" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Archestratus</td>
 | 
				
			||||||
 | 
					                <td>164 Huron St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="7" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Argosy Books</td>
 | 
				
			||||||
 | 
					                <td>116 East 59th St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="8" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Astoria Bookshop</td>
 | 
				
			||||||
 | 
					                <td>36-19 30th St, Astoria</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="9" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Berl's Brooklyn Poetry Shop</td>
 | 
				
			||||||
 | 
					                <td>126A Front St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="10" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Better Read Than Dead</td>
 | 
				
			||||||
 | 
					                <td>867 Broadway, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="11" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Better Read Than Dead & Burly Coffee</td>
 | 
				
			||||||
 | 
					                <td>90 Kosciuszko St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="12" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Black Spring Books</td>
 | 
				
			||||||
 | 
					                <td>672 Driggs Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="13" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Bluestockings Cooperative</td>
 | 
				
			||||||
 | 
					                <td>116 Suffolk Street, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="14" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Bonnie Slotnick Cookbooks</td>
 | 
				
			||||||
 | 
					                <td>28 East 2nd St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="15" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Book Club Bar</td>
 | 
				
			||||||
 | 
					                <td>197 E 3rd St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="16" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Book Culture</td>
 | 
				
			||||||
 | 
					                <td>536 W 112th St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="17" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Book Culture LIC</td>
 | 
				
			||||||
 | 
					                <td>26-09 Jackson Ave, Queens</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="18" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Book Culture on Broadway</td>
 | 
				
			||||||
 | 
					                <td>2915 Broadway, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="19" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Book Thug Nation</td>
 | 
				
			||||||
 | 
					                <td>100 North 3rd St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="20" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Bookmarc</td>
 | 
				
			||||||
 | 
					                <td>400 Bleecker St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="21" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">BookMark Shoppe</td>
 | 
				
			||||||
 | 
					                <td>8415 3rd Avenue, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="22" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Bookoff</td>
 | 
				
			||||||
 | 
					                <td>49 W 45nd St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="23" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Bookoff Brooklyn</td>
 | 
				
			||||||
 | 
					                <td>934 3rd Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="24" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Books Are Magic (Montague St.)</td>
 | 
				
			||||||
 | 
					                <td>122 Montague St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="25" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Books Are Magic (Smith St.)</td>
 | 
				
			||||||
 | 
					                <td>225 Smith St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="26" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Books Of Wonder</td>
 | 
				
			||||||
 | 
					                <td>42 West 17th St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="27" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Bravo's Book Nook</td>
 | 
				
			||||||
 | 
					                <td>115 MacDougal St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="28" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Burnt Books</td>
 | 
				
			||||||
 | 
					                <td>157 Huron St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="29" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Cafe con Libros</td>
 | 
				
			||||||
 | 
					                <td>724 Prospect Place, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="30" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Catland</td>
 | 
				
			||||||
 | 
					                <td>985 Flushing Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="31" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Chartwell Booksellers</td>
 | 
				
			||||||
 | 
					                <td>55 E 52nd St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="32" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Codex Books</td>
 | 
				
			||||||
 | 
					                <td>1 Bleecker St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="33" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Community Bookstore</td>
 | 
				
			||||||
 | 
					                <td>143 7th Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="34" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Cups and Books</td>
 | 
				
			||||||
 | 
					                <td>2024 Bedford Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="35" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Dashwood Books</td>
 | 
				
			||||||
 | 
					                <td>33 Bond St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="36" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Dear Friend Books</td>
 | 
				
			||||||
 | 
					                <td>343A Tompkins Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="37" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Desert Island Comics</td>
 | 
				
			||||||
 | 
					                <td>540 Metropolitan Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="38" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">East Village Books</td>
 | 
				
			||||||
 | 
					                <td>99 St. Mark's Place, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="39" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">ETG Book Cafe</td>
 | 
				
			||||||
 | 
					                <td>208 Bay St, Staten Island</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="40" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Freebird Books</td>
 | 
				
			||||||
 | 
					                <td>123 Columbia St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="41" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Greenlight Bookstore</td>
 | 
				
			||||||
 | 
					                <td>686 Fulton St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="42" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Here's A Book Store</td>
 | 
				
			||||||
 | 
					                <td>1964 Coney Island Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="43" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Hey Kids! Comics</td>
 | 
				
			||||||
 | 
					                <td>157 Huron St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="44" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Housing Works Bookstore Café</td>
 | 
				
			||||||
 | 
					                <td>126 Crosby St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="45" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Human Relations Books</td>
 | 
				
			||||||
 | 
					                <td>1067 Flushing Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="46" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">James Cummins Bookseller</td>
 | 
				
			||||||
 | 
					                <td>699 Madison Ave, 7th Floor, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="47" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Joanne Hendricks Cookbooks</td>
 | 
				
			||||||
 | 
					                <td>488 Greenwich St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="48" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Karma Bookstore</td>
 | 
				
			||||||
 | 
					                <td>136 East Third St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="49" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Kew & Willow Books</td>
 | 
				
			||||||
 | 
					                <td>81-63 Lefferts Boulevard, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="50" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Kinokunya</td>
 | 
				
			||||||
 | 
					                <td>1073 Avenue of the Americas, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="51" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Kitchen Arts & Letters</td>
 | 
				
			||||||
 | 
					                <td>1435 Lexington Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="52" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Leaves Bookstore</td>
 | 
				
			||||||
 | 
					                <td>140 Nassau Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="53" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Left Bank Books</td>
 | 
				
			||||||
 | 
					                <td>41 Perry St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="54" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Lofty Pigeon Books</td>
 | 
				
			||||||
 | 
					                <td>743 Church Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="55" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Logos Bookstore</td>
 | 
				
			||||||
 | 
					                <td>1575 York Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="56" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Mast Books</td>
 | 
				
			||||||
 | 
					                <td>72 Avenue A, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="57" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">McNally Jackson Books</td>
 | 
				
			||||||
 | 
					                <td>134 Prince St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="58" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">McNally Jackson Books City Point</td>
 | 
				
			||||||
 | 
					                <td>445 Albee Square W, Unit G112, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="59" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">McNally Jackson Books Seaport</td>
 | 
				
			||||||
 | 
					                <td>4 Fulton St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="60" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">McNally Jackson Books Williamsburg</td>
 | 
				
			||||||
 | 
					                <td>76 North 4th St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="61" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">McNally Jackson Rockefeller Center</td>
 | 
				
			||||||
 | 
					                <td>1 Rockefeller Plaza, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="62" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Melville House Publishers</td>
 | 
				
			||||||
 | 
					                <td>46 John St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="63" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Mercer Street Books & Records</td>
 | 
				
			||||||
 | 
					                <td>206 Mercer St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="64" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Mil Mundos Books</td>
 | 
				
			||||||
 | 
					                <td>323 Linden St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="65" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Molasses Books</td>
 | 
				
			||||||
 | 
					                <td>770 Hart St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="66" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Namaste Bookshop</td>
 | 
				
			||||||
 | 
					                <td>2 W 14th St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="67" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">P&T Knitwear</td>
 | 
				
			||||||
 | 
					                <td>180 Orchard St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="68" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Passageway Books</td>
 | 
				
			||||||
 | 
					                <td>150 9th Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="69" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Pillow-Cat Books</td>
 | 
				
			||||||
 | 
					                <td>328 East 9th St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="70" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Posman Books Chelsea Market</td>
 | 
				
			||||||
 | 
					                <td>75 9th Avenue, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="71" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">POWERHOUSE @ IC</td>
 | 
				
			||||||
 | 
					                <td>220 36th St, Building #2, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="72" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">POWERHOUSE Arena</td>
 | 
				
			||||||
 | 
					                <td>28 Adams St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="73" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">POWERHOUSE on 8th</td>
 | 
				
			||||||
 | 
					                <td>1111 8th Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="74" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Printed Matter</td>
 | 
				
			||||||
 | 
					                <td>231 11th Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="75" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Printed Matter St. Marks</td>
 | 
				
			||||||
 | 
					                <td>38 St. Marks Pl, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="76" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Quest Bookshop</td>
 | 
				
			||||||
 | 
					                <td>240 E 53rd St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="77" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Quimby's Bookstore</td>
 | 
				
			||||||
 | 
					                <td>536 Metropolitan Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="78" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Recirculation</td>
 | 
				
			||||||
 | 
					                <td>876 Riverside Dr, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="79" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Respect For Life Books-N-Things</td>
 | 
				
			||||||
 | 
					                <td>537 Nostrand Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="80" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Revolution Books</td>
 | 
				
			||||||
 | 
					                <td>437 Malcolm X Blvd, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="81" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Rizzoli Bookstore</td>
 | 
				
			||||||
 | 
					                <td>1133 Broadway, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="82" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Shakespeare & Company</td>
 | 
				
			||||||
 | 
					                <td>939 Lexington Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="83" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">
 | 
				
			||||||
 | 
					                  Shakespeare & Company (Upper West Side)
 | 
				
			||||||
 | 
					                </td>
 | 
				
			||||||
 | 
					                <td>2020 Broadway, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="84" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Sister's Uptown Bookstore</td>
 | 
				
			||||||
 | 
					                <td>1942 Amsterdam Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="85" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Spoonbill & Sugartown, Booksellers</td>
 | 
				
			||||||
 | 
					                <td>218 Bedford Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="86" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Standards Manual</td>
 | 
				
			||||||
 | 
					                <td>212 Franklin Street, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="87" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Strand Bookstore</td>
 | 
				
			||||||
 | 
					                <td>828 Broadway, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="88" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Sweet Pickle Books</td>
 | 
				
			||||||
 | 
					                <td>47 Orchard St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="89" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Taylor & Co. Books</td>
 | 
				
			||||||
 | 
					                <td>1021 Cortelyou Rd, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="90" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Terrace Books</td>
 | 
				
			||||||
 | 
					                <td>242 Prospect Park West, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="91" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Austin Book Shop</td>
 | 
				
			||||||
 | 
					                <td>104-29 Jamaica Ave, Richmond Hill</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="92" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Book Cellar</td>
 | 
				
			||||||
 | 
					                <td>1465 York Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="93" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Center for Fiction</td>
 | 
				
			||||||
 | 
					                <td>15 Lafayette Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="94" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Corner Bookstore</td>
 | 
				
			||||||
 | 
					                <td>1313 Madison Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="95" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Drama Book Shop</td>
 | 
				
			||||||
 | 
					                <td>266 W 39th St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="96" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Lit. Bar</td>
 | 
				
			||||||
 | 
					                <td>131 Alexander Ave, Bronx</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="97" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Mysterious Bookshop</td>
 | 
				
			||||||
 | 
					                <td>58 Warren St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="98" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Ripped Bodice</td>
 | 
				
			||||||
 | 
					                <td>218 5th Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="99" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Strand At Columbus Ave</td>
 | 
				
			||||||
 | 
					                <td>450 Columbus Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="100" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">The Word Is Change</td>
 | 
				
			||||||
 | 
					                <td>368 Tompkins Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="101" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Three Lives & Company</td>
 | 
				
			||||||
 | 
					                <td>154 W 10th St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="102" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Topos Bookstore Cafe</td>
 | 
				
			||||||
 | 
					                <td>788 Woodward Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="103" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Topos Too</td>
 | 
				
			||||||
 | 
					                <td>59-22 Myrtle Ave, Queens</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="104" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Troubled Sleep Books</td>
 | 
				
			||||||
 | 
					                <td>129 6th Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="105" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Turn The Page... Again</td>
 | 
				
			||||||
 | 
					                <td>39-15a Bell Blvd, Flushing</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="106" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Unnameable Books</td>
 | 
				
			||||||
 | 
					                <td>600 Vanderbilt Ave, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="107" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Ursus Books</td>
 | 
				
			||||||
 | 
					                <td>50 East 78th St, Suite 1C, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="108" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Village Works</td>
 | 
				
			||||||
 | 
					                <td>12 St. Marks Pl, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="109" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Westsider Rare & Used Books</td>
 | 
				
			||||||
 | 
					                <td>2246 Broadway, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="110" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Westsider Records</td>
 | 
				
			||||||
 | 
					                <td>233 West 72nd St, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="111" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Word Bookstore</td>
 | 
				
			||||||
 | 
					                <td>126 Franklin St, Brooklyn</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="112" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Word Up Books</td>
 | 
				
			||||||
 | 
					                <td>2113 Amsterdam Ave, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					              <tr id="113" class="spotRow">
 | 
				
			||||||
 | 
					                <td class="name">Yu and Me Books</td>
 | 
				
			||||||
 | 
					                <td>115 Delancey St Stall #11, New York</td>
 | 
				
			||||||
 | 
					              </tr>
 | 
				
			||||||
 | 
					            </tbody>
 | 
				
			||||||
 | 
					          </table>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    <!-- end wrapper -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <script>
 | 
				
			||||||
 | 
					      mapboxgl.accessToken =
 | 
				
			||||||
 | 
					        "pk.eyJ1IjoiYWxhenlyZWFkZXIiLCJhIjoiY2lucDZhb2JxMHp6MHRxa2pvaTFoOWpuZyJ9.DILGYYxxt7A-A_lHHwp6tQ";
 | 
				
			||||||
 | 
					      var map = new mapboxgl.Map({
 | 
				
			||||||
 | 
					        container: "map",
 | 
				
			||||||
 | 
					        style: "mapbox://styles/mapbox/basic-v9",
 | 
				
			||||||
 | 
					        center: [-73.957292, 40.729071], // arbitrary center point
 | 
				
			||||||
 | 
					        zoom: 9,
 | 
				
			||||||
 | 
					        minZoom: 9,
 | 
				
			||||||
 | 
					        maxZoom: 17,
 | 
				
			||||||
 | 
					        dragRotate: false,
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      var popup = new mapboxgl.Popup({
 | 
				
			||||||
 | 
					        closeOnClick: false,
 | 
				
			||||||
 | 
					        closeButton: false,
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function TableViewTemplate(rows) {
 | 
				
			||||||
 | 
					        table = "<table>";
 | 
				
			||||||
 | 
					        rows.forEach((row) => {
 | 
				
			||||||
 | 
					          table = table + TableRowTemplate(row);
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        return table + "</table>";
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function TableRowTemplate({ rowNumber, name, address, city }) {
 | 
				
			||||||
 | 
					        return `<tr id="${rowNumber}" class="spotRow">
 | 
				
			||||||
 | 
					          <td class="name">${name}</td><td>${address}, ${city}</td>
 | 
				
			||||||
 | 
					        </tr>`;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function SelectedStoreTemplate({
 | 
				
			||||||
 | 
					        name,
 | 
				
			||||||
 | 
					        address,
 | 
				
			||||||
 | 
					        city,
 | 
				
			||||||
 | 
					        postcode,
 | 
				
			||||||
 | 
					        website,
 | 
				
			||||||
 | 
					        events,
 | 
				
			||||||
 | 
					        cafe,
 | 
				
			||||||
 | 
					        description,
 | 
				
			||||||
 | 
					      }) {
 | 
				
			||||||
 | 
					        const isAppleIsh = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
 | 
				
			||||||
 | 
					        return `
 | 
				
			||||||
 | 
					          <h2>${name}</h2>
 | 
				
			||||||
 | 
					          <p class="address">${address}</p>
 | 
				
			||||||
 | 
					          <p></p>
 | 
				
			||||||
 | 
					          <p class="address">
 | 
				
			||||||
 | 
					            ${city}, NY ${postcode}
 | 
				
			||||||
 | 
					          </p>
 | 
				
			||||||
 | 
					          <p>
 | 
				
			||||||
 | 
					            <a
 | 
				
			||||||
 | 
					              href="https://maps.google.com/maps?q=${encodeURIComponent(
 | 
				
			||||||
 | 
					                name
 | 
				
			||||||
 | 
					              )}+${address},${city},NY"
 | 
				
			||||||
 | 
					              target="_blank"
 | 
				
			||||||
 | 
					              >Google Maps</a
 | 
				
			||||||
 | 
					            >
 | 
				
			||||||
 | 
					            ${
 | 
				
			||||||
 | 
					              isAppleIsh
 | 
				
			||||||
 | 
					                ? `
 | 
				
			||||||
 | 
					            <a
 | 
				
			||||||
 | 
					              href="http://maps.apple.com/?q=${encodeURIComponent(
 | 
				
			||||||
 | 
					                name
 | 
				
			||||||
 | 
					              )}&address=${address},${city},NY"
 | 
				
			||||||
 | 
					              target="_blank"
 | 
				
			||||||
 | 
					              >Apple Maps</a
 | 
				
			||||||
 | 
					            >`
 | 
				
			||||||
 | 
					                : ""
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          </p>
 | 
				
			||||||
 | 
					          ${
 | 
				
			||||||
 | 
					            website
 | 
				
			||||||
 | 
					              ? `<p><a href="${website}" target="_blank">${cleanWebsite(
 | 
				
			||||||
 | 
					                  website
 | 
				
			||||||
 | 
					                )}</a></p>`
 | 
				
			||||||
 | 
					              : ""
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					          ${description ? `<p class="description">${description}</p>` : ""}`;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function hideElementById(id) {
 | 
				
			||||||
 | 
					        const element = document.getElementById(id);
 | 
				
			||||||
 | 
					        if (element !== undefined) {
 | 
				
			||||||
 | 
					          element.classList.add("hidden");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function showElementById(id) {
 | 
				
			||||||
 | 
					        const element = document.getElementById(id);
 | 
				
			||||||
 | 
					        if (element !== undefined) {
 | 
				
			||||||
 | 
					          element.classList.remove("hidden");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function setContent(id, html) {
 | 
				
			||||||
 | 
					        const element = document.getElementById(id);
 | 
				
			||||||
 | 
					        if (element !== undefined) {
 | 
				
			||||||
 | 
					          element.innerHTML = html;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      document.addEventListener("DOMContentLoaded", function () {
 | 
				
			||||||
 | 
					        fetch("./stores.json")
 | 
				
			||||||
 | 
					          .then((resp) => {
 | 
				
			||||||
 | 
					            return resp.json();
 | 
				
			||||||
 | 
					          })
 | 
				
			||||||
 | 
					          .then((data) => {
 | 
				
			||||||
 | 
					            data.sort(function (a, b) {
 | 
				
			||||||
 | 
					              var aname = a.name.toLowerCase();
 | 
				
			||||||
 | 
					              var bname = b.name.toLowerCase();
 | 
				
			||||||
 | 
					              return aname === bname ? 0 : +(aname > bname) || -1;
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					            data.forEach((value, key) => {
 | 
				
			||||||
 | 
					              value.rowNumber = key;
 | 
				
			||||||
 | 
					              value.slug = slugify(value.name);
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					            setContent("storeCount", data.length);
 | 
				
			||||||
 | 
					            window.data = data;
 | 
				
			||||||
 | 
					            loadMap(data);
 | 
				
			||||||
 | 
					          })
 | 
				
			||||||
 | 
					          .catch((err) => {
 | 
				
			||||||
 | 
					            // we'll live with the static cache!
 | 
				
			||||||
 | 
					            console.log(err);
 | 
				
			||||||
 | 
					          });
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      window.addEventListener(
 | 
				
			||||||
 | 
					        "hashchange",
 | 
				
			||||||
 | 
					        function (e) {
 | 
				
			||||||
 | 
					          updateViewBySlug(e.newURL.split("#")[1]);
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        false
 | 
				
			||||||
 | 
					      );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function updateHash(slug) {
 | 
				
			||||||
 | 
					        history.pushState(null, null, "#" + slug);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function slugify(str) {
 | 
				
			||||||
 | 
					        return str
 | 
				
			||||||
 | 
					          .toLowerCase()
 | 
				
			||||||
 | 
					          .replace(/é/g, "e")
 | 
				
			||||||
 | 
					          .replace(/&/g, " and ")
 | 
				
			||||||
 | 
					          .replace(/ /g, "-")
 | 
				
			||||||
 | 
					          .replace(/[']+/g, "")
 | 
				
			||||||
 | 
					          .replace(/[^\w-]+/g, "-")
 | 
				
			||||||
 | 
					          .replace(/-+/g, "-")
 | 
				
			||||||
 | 
					          .replace(/^-|-$/g, "");
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function cleanWebsite(str) {
 | 
				
			||||||
 | 
					        return str
 | 
				
			||||||
 | 
					          .toLowerCase()
 | 
				
			||||||
 | 
					          .replace(/^https?:\/\//g, "")
 | 
				
			||||||
 | 
					          .replace(/^www./g, "")
 | 
				
			||||||
 | 
					          .replace(/\/$/g, "");
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function getStoreBySlug(slug) {
 | 
				
			||||||
 | 
					        var ret = false;
 | 
				
			||||||
 | 
					        window.data.forEach((value, key) => {
 | 
				
			||||||
 | 
					          if (value.slug === slug) {
 | 
				
			||||||
 | 
					            ret = value;
 | 
				
			||||||
 | 
					            return false;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        return ret;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function updateViewBySlug(slug) {
 | 
				
			||||||
 | 
					        if (slug === "info" || slug === undefined) {
 | 
				
			||||||
 | 
					          showInfo(false);
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					          var store = getStoreBySlug(slug);
 | 
				
			||||||
 | 
					          if (store) {
 | 
				
			||||||
 | 
					            updateSelectedStore(store, false);
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function isStacked() {
 | 
				
			||||||
 | 
					        return screen.width < 1120;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function boundingBox(point) {
 | 
				
			||||||
 | 
					        // add some buffer to a point to give the user some leeway
 | 
				
			||||||
 | 
					        return [
 | 
				
			||||||
 | 
					          [point.x - 5, point.y - 5],
 | 
				
			||||||
 | 
					          [point.x + 5, point.y + 5],
 | 
				
			||||||
 | 
					        ];
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function updateSelectedStore(store, pushState = false) {
 | 
				
			||||||
 | 
					        map.flyTo({
 | 
				
			||||||
 | 
					          center: [store.long, store.lat],
 | 
				
			||||||
 | 
					          offset: [isStacked() ? 0 : -250, 0],
 | 
				
			||||||
 | 
					          zoom: 13,
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        popup.setLngLat([store.long, store.lat]).setHTML(store.name).addTo(map);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        hideElementById("info");
 | 
				
			||||||
 | 
					        setContent("selected", SelectedStoreTemplate(store));
 | 
				
			||||||
 | 
					        showElementById("selected");
 | 
				
			||||||
 | 
					        if (pushState) {
 | 
				
			||||||
 | 
					          updateHash(store.slug);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function showInfo(pushState = true) {
 | 
				
			||||||
 | 
					        hideElementById("selected");
 | 
				
			||||||
 | 
					        popup.remove();
 | 
				
			||||||
 | 
					        showElementById("info");
 | 
				
			||||||
 | 
					        if (pushState) {
 | 
				
			||||||
 | 
					          updateHash("info");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      function loadMap(data) {
 | 
				
			||||||
 | 
					        var points = [];
 | 
				
			||||||
 | 
					        data.forEach((value, key) => {
 | 
				
			||||||
 | 
					          points.push({
 | 
				
			||||||
 | 
					            type: "Feature",
 | 
				
			||||||
 | 
					            geometry: {
 | 
				
			||||||
 | 
					              type: "Point",
 | 
				
			||||||
 | 
					              coordinates: [value.long, value.lat],
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            properties: value,
 | 
				
			||||||
 | 
					          });
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        map.on("load", function () {
 | 
				
			||||||
 | 
					          map.addLayer({
 | 
				
			||||||
 | 
					            id: "stores",
 | 
				
			||||||
 | 
					            type: "circle",
 | 
				
			||||||
 | 
					            source: {
 | 
				
			||||||
 | 
					              type: "geojson",
 | 
				
			||||||
 | 
					              data: {
 | 
				
			||||||
 | 
					                type: "FeatureCollection",
 | 
				
			||||||
 | 
					                features: points,
 | 
				
			||||||
 | 
					              },
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            paint: {
 | 
				
			||||||
 | 
					              "circle-radius": 5,
 | 
				
			||||||
 | 
					              "circle-color": "#B9FCFC",
 | 
				
			||||||
 | 
					              "circle-stroke-width": 2,
 | 
				
			||||||
 | 
					              "circle-stroke-color": "#000000",
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					          });
 | 
				
			||||||
 | 
					          map.addControl(new mapboxgl.NavigationControl(), "top-left");
 | 
				
			||||||
 | 
					          updateViewBySlug(window.location.hash.split("#")[1]);
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        map.on("click", function (e) {
 | 
				
			||||||
 | 
					          if (!map.getLayer("stores")) {
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          popup.remove();
 | 
				
			||||||
 | 
					          // Use queryRenderedFeatures to get features at a click event's point
 | 
				
			||||||
 | 
					          var features = map.queryRenderedFeatures(boundingBox(e.point), {
 | 
				
			||||||
 | 
					            layers: ["stores"],
 | 
				
			||||||
 | 
					          });
 | 
				
			||||||
 | 
					          // fly to the location of the click event
 | 
				
			||||||
 | 
					          if (features.length) {
 | 
				
			||||||
 | 
					            var store = features[0];
 | 
				
			||||||
 | 
					            // Get coordinates from the symbol and center the map on those coordinates
 | 
				
			||||||
 | 
					            updateSelectedStore(store.properties, true);
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // indicate that the symbols are clickable by changing the cursor style to 'pointer'.
 | 
				
			||||||
 | 
					        map.on("mousemove", function (e) {
 | 
				
			||||||
 | 
					          if (!map.getLayer("stores")) {
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					          var features = map.queryRenderedFeatures(boundingBox(e.point), {
 | 
				
			||||||
 | 
					            layers: ["stores"],
 | 
				
			||||||
 | 
					          });
 | 
				
			||||||
 | 
					          map.getCanvas().style.cursor = features.length ? "pointer" : "";
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        setContent("Stores", TableViewTemplate(data));
 | 
				
			||||||
 | 
					        document.querySelectorAll("#Stores tbody tr").forEach((element) => {
 | 
				
			||||||
 | 
					          element.addEventListener("click", () => {
 | 
				
			||||||
 | 
					            updateSelectedStore(data[element.id], true);
 | 
				
			||||||
 | 
					            document
 | 
				
			||||||
 | 
					              .getElementById(isStacked() ? "map" : "selected")
 | 
				
			||||||
 | 
					              .scrollIntoView({ behavior: "smooth" });
 | 
				
			||||||
 | 
					          });
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        document.getElementById("viewInfo").addEventListener("click", showInfo);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    </script>
 | 
				
			||||||
 | 
					  </body>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
							
								
								
									
										153
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										153
									
								
								index.js
									
									
									
									
									
								
							@@ -1,58 +1,7 @@
 | 
				
			|||||||
import { load } from "cheerio";
 | 
					import { load } from "cheerio";
 | 
				
			||||||
import { readFile, writeFileSync, mkdirSync, cpSync, rmSync } from "fs";
 | 
					import { readFile, writeFile } from "fs";
 | 
				
			||||||
import process from "child_process";
 | 
					import process from "child_process";
 | 
				
			||||||
import { simpleSitemapAndIndex } from "sitemap";
 | 
					import stores from "./stores.json" assert { type: "json" };
 | 
				
			||||||
 | 
					 | 
				
			||||||
import stores from "./stores.json" with { type: "json" };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function mkDir(path) {
 | 
					 | 
				
			||||||
  try {
 | 
					 | 
				
			||||||
    return mkdirSync(path);
 | 
					 | 
				
			||||||
  } catch (err) {
 | 
					 | 
				
			||||||
    if (err.code !== "EEXIST") throw err;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function writeFile(path, content) {
 | 
					 | 
				
			||||||
  try {
 | 
					 | 
				
			||||||
    writeFileSync(path, content);
 | 
					 | 
				
			||||||
  } catch (err) {
 | 
					 | 
				
			||||||
    if (err) throw err;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  console.log(`${path} updated.`);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function slugify(str) {
 | 
					 | 
				
			||||||
  return str
 | 
					 | 
				
			||||||
    .toLowerCase()
 | 
					 | 
				
			||||||
    .replace(/é/g, "e")
 | 
					 | 
				
			||||||
    .replace(/&/g, " and ")
 | 
					 | 
				
			||||||
    .replace(/ /g, "-")
 | 
					 | 
				
			||||||
    .replace(/[']+/g, "")
 | 
					 | 
				
			||||||
    .replace(/[^\w-]+/g, "-")
 | 
					 | 
				
			||||||
    .replace(/-+/g, "-")
 | 
					 | 
				
			||||||
    .replace(/^-|-$/g, "");
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function cleanWebsite(str) {
 | 
					 | 
				
			||||||
  return str
 | 
					 | 
				
			||||||
    .toLowerCase()
 | 
					 | 
				
			||||||
    .replace(/^https?:\/\//g, "")
 | 
					 | 
				
			||||||
    .replace(/^www./g, "")
 | 
					 | 
				
			||||||
    .replace(/\/$/g, "");
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function metaDescription({ name, meta, description }) {
 | 
					 | 
				
			||||||
  if (meta && (meta.length > 155 || (meta.length < 145 && meta.length !== 0))) {
 | 
					 | 
				
			||||||
    console.log(
 | 
					 | 
				
			||||||
      `warning: meta tag for ${name} is invalid: 145/${meta.length}/155`
 | 
					 | 
				
			||||||
    );
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  return meta || description.length > 155
 | 
					 | 
				
			||||||
    ? description.slice(0, 153) + "..."
 | 
					 | 
				
			||||||
    : description ||
 | 
					 | 
				
			||||||
        "A guide to and map of every independent bookstore in New York City. We have a complete list of community bookstores in NYC with locations and descriptions.";
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
function GetRecentChanges() {
 | 
					function GetRecentChanges() {
 | 
				
			||||||
  const res = process
 | 
					  const res = process
 | 
				
			||||||
@@ -68,7 +17,6 @@ function ChangeLog(logs) {
 | 
				
			|||||||
    if (
 | 
					    if (
 | 
				
			||||||
      i > 3 ||
 | 
					      i > 3 ||
 | 
				
			||||||
      l.includes("[skip]") ||
 | 
					      l.includes("[skip]") ||
 | 
				
			||||||
      l.includes("[ignore]") ||
 | 
					 | 
				
			||||||
      l.includes("caddy") ||
 | 
					      l.includes("caddy") ||
 | 
				
			||||||
      l.includes("renovate")
 | 
					      l.includes("renovate")
 | 
				
			||||||
    ) {
 | 
					    ) {
 | 
				
			||||||
@@ -95,67 +43,15 @@ function TableViewTemplate(rows) {
 | 
				
			|||||||
  return table + "</table>";
 | 
					  return table + "</table>";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function TableRowTemplate({ rowNumber, name, slug, address, city }) {
 | 
					function TableRowTemplate({ rowNumber, name, address, city }) {
 | 
				
			||||||
  return `
 | 
					  return `
 | 
				
			||||||
  <tr id="${rowNumber}" class="spotRow">
 | 
					  <tr id="${rowNumber}" class="spotRow">
 | 
				
			||||||
    <td class="name"><a href="/${slugify(name)}/">${name}</a></td>
 | 
					    <td class="name">${name}</td>
 | 
				
			||||||
    <td><a href="/${slugify(name)}/">${address}, ${city}</a></td>
 | 
					    <td>${address}, ${city}</td>
 | 
				
			||||||
  </tr>`;
 | 
					  </tr>`;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function TitleTemplate({ name }) {
 | 
					readFile("./index.html", function (err, data) {
 | 
				
			||||||
  return `${name} | Independent Bookstores in New York City - Best Community Bookstores in NYC`;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function SelectedStoreTemplate({
 | 
					 | 
				
			||||||
  name,
 | 
					 | 
				
			||||||
  address,
 | 
					 | 
				
			||||||
  city,
 | 
					 | 
				
			||||||
  postcode,
 | 
					 | 
				
			||||||
  website,
 | 
					 | 
				
			||||||
  events,
 | 
					 | 
				
			||||||
  cafe,
 | 
					 | 
				
			||||||
  description,
 | 
					 | 
				
			||||||
}) {
 | 
					 | 
				
			||||||
  return `
 | 
					 | 
				
			||||||
    <h2>${name}</h2>
 | 
					 | 
				
			||||||
    <p class="address">${address}</p>
 | 
					 | 
				
			||||||
    <p></p>
 | 
					 | 
				
			||||||
    <p class="address">
 | 
					 | 
				
			||||||
      ${city}, NY ${postcode}
 | 
					 | 
				
			||||||
    </p>
 | 
					 | 
				
			||||||
    <p>
 | 
					 | 
				
			||||||
      View in:
 | 
					 | 
				
			||||||
      <a
 | 
					 | 
				
			||||||
        href="https://maps.google.com/maps?q=${encodeURIComponent(
 | 
					 | 
				
			||||||
          name
 | 
					 | 
				
			||||||
        )}+${address},${city},NY"
 | 
					 | 
				
			||||||
        target="_blank"
 | 
					 | 
				
			||||||
        >Google Maps</a
 | 
					 | 
				
			||||||
      >
 | 
					 | 
				
			||||||
      <a
 | 
					 | 
				
			||||||
        href="http://maps.apple.com/?q=${encodeURIComponent(
 | 
					 | 
				
			||||||
          name
 | 
					 | 
				
			||||||
        )}&address=${address},${city},NY"
 | 
					 | 
				
			||||||
        target="_blank"
 | 
					 | 
				
			||||||
        >Apple Maps</a
 | 
					 | 
				
			||||||
      >
 | 
					 | 
				
			||||||
    </p>
 | 
					 | 
				
			||||||
    <ul>
 | 
					 | 
				
			||||||
      ${
 | 
					 | 
				
			||||||
        website
 | 
					 | 
				
			||||||
          ? `<li><a href="${website}" target="_blank">${cleanWebsite(
 | 
					 | 
				
			||||||
              website
 | 
					 | 
				
			||||||
            )}</a></li>`
 | 
					 | 
				
			||||||
          : ""
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
      <li class="storeDetails">Events: ${events}</li>
 | 
					 | 
				
			||||||
      <li class="storeDetails">Café: ${cafe}</li>
 | 
					 | 
				
			||||||
    </ul>
 | 
					 | 
				
			||||||
    ${description ? `<p class="description">${description}</p>` : ""}`;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
readFile("./index.tmpl.html", function (err, data) {
 | 
					 | 
				
			||||||
  const changeList = GetRecentChanges();
 | 
					  const changeList = GetRecentChanges();
 | 
				
			||||||
  if (err) {
 | 
					  if (err) {
 | 
				
			||||||
    throw err;
 | 
					    throw err;
 | 
				
			||||||
@@ -180,39 +76,8 @@ readFile("./index.tmpl.html", function (err, data) {
 | 
				
			|||||||
  $("#changesList").html(ChangeLog(changeList));
 | 
					  $("#changesList").html(ChangeLog(changeList));
 | 
				
			||||||
  const cssurl = $("link[type='text/css']").attr("href").split("?")[0];
 | 
					  const cssurl = $("link[type='text/css']").attr("href").split("?")[0];
 | 
				
			||||||
  $("link[type='text/css']").attr("href", cssurl + "?" + new Date().getTime());
 | 
					  $("link[type='text/css']").attr("href", cssurl + "?" + new Date().getTime());
 | 
				
			||||||
 | 
					  writeFile("./index.html", $.html(), (err) => {
 | 
				
			||||||
  rmSync("./build", { recursive: true, force: true });
 | 
					    if (err) throw err;
 | 
				
			||||||
 | 
					    console.log("Default view updated.");
 | 
				
			||||||
  mkDir("./build");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  writeFile("./build/index.html", $.html());
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  cpSync("./site.css", "./build/site.css");
 | 
					 | 
				
			||||||
  cpSync("./robots.txt", "./build/robots.txt");
 | 
					 | 
				
			||||||
  cpSync("./img", "./build/img", { recursive: true });
 | 
					 | 
				
			||||||
  cpSync("./stores.json", "./build/stores.json");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  let pages = [{ url: `/` }];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  stores.forEach((store) => {
 | 
					 | 
				
			||||||
    $("#selected").html(SelectedStoreTemplate(store));
 | 
					 | 
				
			||||||
    $("#info").addClass("hidden");
 | 
					 | 
				
			||||||
    let title = TitleTemplate(store);
 | 
					 | 
				
			||||||
    $("title").html(title);
 | 
					 | 
				
			||||||
    $("meta[name='title']").attr("content", title);
 | 
					 | 
				
			||||||
    $("meta[name='description']").attr("content", metaDescription(store));
 | 
					 | 
				
			||||||
    $("link[rel='canonical']").attr(
 | 
					 | 
				
			||||||
      "href",
 | 
					 | 
				
			||||||
      `https://www.nycbookstores.org/${slugify(store.name)}/`
 | 
					 | 
				
			||||||
    );
 | 
					 | 
				
			||||||
    mkDir(`./build/${slugify(store.name)}`);
 | 
					 | 
				
			||||||
    writeFile(`./build/${slugify(store.name)}/index.html`, $.html());
 | 
					 | 
				
			||||||
    pages.push({ url: `/${slugify(store.name)}/` });
 | 
					 | 
				
			||||||
  });
 | 
					 | 
				
			||||||
  simpleSitemapAndIndex({
 | 
					 | 
				
			||||||
    hostname: "https://www.nycbookstores.org/",
 | 
					 | 
				
			||||||
    destinationDir: `./build/`,
 | 
					 | 
				
			||||||
    sourceData: pages,
 | 
					 | 
				
			||||||
    gzip: false,
 | 
					 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										469
									
								
								index.tmpl.html
									
									
									
									
									
								
							
							
						
						
									
										469
									
								
								index.tmpl.html
									
									
									
									
									
								
							@@ -1,469 +0,0 @@
 | 
				
			|||||||
<!DOCTYPE html>
 | 
					 | 
				
			||||||
<html lang="en">
 | 
					 | 
				
			||||||
  <head>
 | 
					 | 
				
			||||||
    <script
 | 
					 | 
				
			||||||
      defer=""
 | 
					 | 
				
			||||||
      data-domain="nycbookstores.org"
 | 
					 | 
				
			||||||
      src="https://stats.yetaga.in/js/script.outbound-links.js"
 | 
					 | 
				
			||||||
    ></script>
 | 
					 | 
				
			||||||
    <meta charset="utf-8" />
 | 
					 | 
				
			||||||
    <meta http-equiv="x-ua-compatible" content="ie=edge" />
 | 
					 | 
				
			||||||
    <title>
 | 
					 | 
				
			||||||
      Independent Bookstores in New York City - Best Community Bookstores in NYC
 | 
					 | 
				
			||||||
    </title>
 | 
					 | 
				
			||||||
    <meta
 | 
					 | 
				
			||||||
      name="google-site-verification"
 | 
					 | 
				
			||||||
      content="hEfog9h0E3JQW91ZUZM5ayPb6DND0WbUa2_W8yTIuVw"
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <link rel="icon" type="image/png" href="/img/favicon.png" />
 | 
					 | 
				
			||||||
    <link rel="apple-touch-icon" href="/img/social.jpg" />
 | 
					 | 
				
			||||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 | 
					 | 
				
			||||||
    <script src="https://api.mapbox.com/mapbox-gl-js/v2.13.0/mapbox-gl.js"></script>
 | 
					 | 
				
			||||||
    <link
 | 
					 | 
				
			||||||
      href="https://api.mapbox.com/mapbox-gl-js/v2.13.0/mapbox-gl.css"
 | 
					 | 
				
			||||||
      rel="stylesheet"
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <link
 | 
					 | 
				
			||||||
      href="https://fonts.googleapis.com/css?family=Acme|Lato&display=swap"
 | 
					 | 
				
			||||||
      rel="stylesheet"
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <link
 | 
					 | 
				
			||||||
      media="screen"
 | 
					 | 
				
			||||||
      rel="stylesheet"
 | 
					 | 
				
			||||||
      type="text/css"
 | 
					 | 
				
			||||||
      href="/site.css?1734659401621"
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <meta
 | 
					 | 
				
			||||||
      property="title"
 | 
					 | 
				
			||||||
      name="title"
 | 
					 | 
				
			||||||
      content="Independent Bookstores in New York City - Best Community Bookstores in NYC"
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <meta
 | 
					 | 
				
			||||||
      property="description"
 | 
					 | 
				
			||||||
      name="description"
 | 
					 | 
				
			||||||
      content="A guide to and map of every independent bookstore in New York City. We have a complete list of community bookstores in NYC with locations and descriptions."
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <meta name="twitter:card" content="summary" />
 | 
					 | 
				
			||||||
    <meta name="twitter:site" content="www.nycbookstores.org" />
 | 
					 | 
				
			||||||
    <meta name="twitter:title" content="NYC Bookstores" />
 | 
					 | 
				
			||||||
    <meta
 | 
					 | 
				
			||||||
      name="twitter:description"
 | 
					 | 
				
			||||||
      content="A Guide To The Many Independent Bookstores Of New York City"
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <meta
 | 
					 | 
				
			||||||
      name="twitter:image"
 | 
					 | 
				
			||||||
      content="https://www.nycbookstores.org/img/social.jpg"
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <meta property="og:url" content="https://www.nycbookstores.org/" />
 | 
					 | 
				
			||||||
    <meta property="og:type" content="website" />
 | 
					 | 
				
			||||||
    <meta property="og:title" content="NYC Bookstores" />
 | 
					 | 
				
			||||||
    <meta
 | 
					 | 
				
			||||||
      property="og:description"
 | 
					 | 
				
			||||||
      content="A Guide To The Many Independent Bookstores Of New York City"
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <meta
 | 
					 | 
				
			||||||
      property="og:image"
 | 
					 | 
				
			||||||
      content="https://www.nycbookstores.org/img/social.jpg"
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <link rel="canonical" href="https://www.nycbookstores.org/" />
 | 
					 | 
				
			||||||
  </head>
 | 
					 | 
				
			||||||
  <body>
 | 
					 | 
				
			||||||
    <div id="wrapper">
 | 
					 | 
				
			||||||
      <h1>NYC Bookstores</h1>
 | 
					 | 
				
			||||||
      <div>
 | 
					 | 
				
			||||||
        <ul class="nav">
 | 
					 | 
				
			||||||
          <li>
 | 
					 | 
				
			||||||
            <h2 id="subhed">
 | 
					 | 
				
			||||||
              The Many Independent Bookstores of New York City
 | 
					 | 
				
			||||||
            </h2>
 | 
					 | 
				
			||||||
          </li>
 | 
					 | 
				
			||||||
          <li>
 | 
					 | 
				
			||||||
            <a id="viewInfo" href="/">intro</a>
 | 
					 | 
				
			||||||
          </li>
 | 
					 | 
				
			||||||
          <li>
 | 
					 | 
				
			||||||
            <a
 | 
					 | 
				
			||||||
              href="https://git.yetaga.in/alazyreader/nyc-bookstores/"
 | 
					 | 
				
			||||||
              target="_blank"
 | 
					 | 
				
			||||||
              >source</a
 | 
					 | 
				
			||||||
            >
 | 
					 | 
				
			||||||
          </li>
 | 
					 | 
				
			||||||
          <li>
 | 
					 | 
				
			||||||
            <a href="https://icosahedron.website/@lazyreader" target="_blank"
 | 
					 | 
				
			||||||
              >@lazyreader</a
 | 
					 | 
				
			||||||
            >
 | 
					 | 
				
			||||||
          </li>
 | 
					 | 
				
			||||||
        </ul>
 | 
					 | 
				
			||||||
      </div>
 | 
					 | 
				
			||||||
      <div class="container">
 | 
					 | 
				
			||||||
        <div id="map"></div>
 | 
					 | 
				
			||||||
        <div id="info">
 | 
					 | 
				
			||||||
          <p>
 | 
					 | 
				
			||||||
            New York City loves its independent bookstores. It
 | 
					 | 
				
			||||||
            <a
 | 
					 | 
				
			||||||
              href="https://www.nytimes.com/2006/10/15/nyregion/thecity/15book.html"
 | 
					 | 
				
			||||||
              target="_blank"
 | 
					 | 
				
			||||||
              >eulogizes those that have faded</a
 | 
					 | 
				
			||||||
            >
 | 
					 | 
				
			||||||
            and celebrates when new ventures are launched. And while the
 | 
					 | 
				
			||||||
            historic
 | 
					 | 
				
			||||||
            <a
 | 
					 | 
				
			||||||
              href="https://untappedcities.com/2015/08/26/4th-avenue-the-history-of-nycs-book-row/"
 | 
					 | 
				
			||||||
              target="_blank"
 | 
					 | 
				
			||||||
              >Book Row may have passed away in the 80s</a
 | 
					 | 
				
			||||||
            >, there are still many indie bookstores dotting the map, across all
 | 
					 | 
				
			||||||
            five boroughs. Here, I have attempted to collect all of the
 | 
					 | 
				
			||||||
            currently-open general-interest independent booksellers in NYC. Any
 | 
					 | 
				
			||||||
            store with regular-ish hours (excluding religious booksellers and
 | 
					 | 
				
			||||||
            appointment-only rare book sellers) is included.
 | 
					 | 
				
			||||||
          </p>
 | 
					 | 
				
			||||||
          <p>
 | 
					 | 
				
			||||||
            While Manhattan and Brooklyn still lead the pack, Queens has a
 | 
					 | 
				
			||||||
            respectable number of stores, and all five boroughs are represented,
 | 
					 | 
				
			||||||
            with the Bronx and Staten Island both hosting lone independent
 | 
					 | 
				
			||||||
            stores. Lower Manhattan has the highest density of booksellers.
 | 
					 | 
				
			||||||
          </p>
 | 
					 | 
				
			||||||
          <p>
 | 
					 | 
				
			||||||
            The listings here are kept up-to-date to the best of my ability;
 | 
					 | 
				
			||||||
            however, I make no promises about either the accuracy or reliability
 | 
					 | 
				
			||||||
            of the information. If you spot an error, or I've missed a shop,
 | 
					 | 
				
			||||||
            please let me know by
 | 
					 | 
				
			||||||
            <a href="mailto:delta.mu.alpha@gmail.com" target="_blank">email</a>,
 | 
					 | 
				
			||||||
            <a href="https://icosahedron.website/@lazyreader" target="_blank"
 | 
					 | 
				
			||||||
              >mastodon</a
 | 
					 | 
				
			||||||
            >, or
 | 
					 | 
				
			||||||
            <a href="https://www.twitter.com/alazyreader" target="_blank"
 | 
					 | 
				
			||||||
              >twitter</a
 | 
					 | 
				
			||||||
            >. Originally based on the "<a
 | 
					 | 
				
			||||||
              href="https://github.com/jlord/hack-spots"
 | 
					 | 
				
			||||||
              target="_blank"
 | 
					 | 
				
			||||||
              >Hack Spots</a
 | 
					 | 
				
			||||||
            >" website by
 | 
					 | 
				
			||||||
            <a href="https://www.twitter.com/jllord" target="_blank">@jllord</a>
 | 
					 | 
				
			||||||
            (although I don't believe any of the actual underlying code still
 | 
					 | 
				
			||||||
            survives at this point).
 | 
					 | 
				
			||||||
          </p>
 | 
					 | 
				
			||||||
          <p>
 | 
					 | 
				
			||||||
            There are currently <span id="storeCount">121</span> stores indexed
 | 
					 | 
				
			||||||
            on this page. Last updated
 | 
					 | 
				
			||||||
            <span id="updatedOn">December 19, 2024</span>.
 | 
					 | 
				
			||||||
          </p>
 | 
					 | 
				
			||||||
          <details>
 | 
					 | 
				
			||||||
            <summary>Recent Changes</summary>
 | 
					 | 
				
			||||||
            <ul id="changesList"></ul>
 | 
					 | 
				
			||||||
          </details>
 | 
					 | 
				
			||||||
        </div>
 | 
					 | 
				
			||||||
        <div id="selected"></div>
 | 
					 | 
				
			||||||
      </div>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      <div class="clearfix"></div>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      <div class="container">
 | 
					 | 
				
			||||||
        <div id="Stores">
 | 
					 | 
				
			||||||
          <table>
 | 
					 | 
				
			||||||
            <tbody></tbody>
 | 
					 | 
				
			||||||
          </table>
 | 
					 | 
				
			||||||
        </div>
 | 
					 | 
				
			||||||
      </div>
 | 
					 | 
				
			||||||
    </div>
 | 
					 | 
				
			||||||
    <!-- end wrapper -->
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    <script>
 | 
					 | 
				
			||||||
      mapboxgl.accessToken =
 | 
					 | 
				
			||||||
        "pk.eyJ1IjoiYWxhenlyZWFkZXIiLCJhIjoiY2lucDZhb2JxMHp6MHRxa2pvaTFoOWpuZyJ9.DILGYYxxt7A-A_lHHwp6tQ";
 | 
					 | 
				
			||||||
      var map = new mapboxgl.Map({
 | 
					 | 
				
			||||||
        container: "map",
 | 
					 | 
				
			||||||
        style: "mapbox://styles/mapbox/basic-v9",
 | 
					 | 
				
			||||||
        center: [-73.957292, 40.729071], // arbitrary center point
 | 
					 | 
				
			||||||
        zoom: 9,
 | 
					 | 
				
			||||||
        minZoom: 9,
 | 
					 | 
				
			||||||
        maxZoom: 17,
 | 
					 | 
				
			||||||
        dragRotate: false,
 | 
					 | 
				
			||||||
      });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      var popup = new mapboxgl.Popup({
 | 
					 | 
				
			||||||
        closeOnClick: false,
 | 
					 | 
				
			||||||
        closeButton: false,
 | 
					 | 
				
			||||||
      });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function TitleTemplate({ name }) {
 | 
					 | 
				
			||||||
        return `${name} | Independent Bookstores in New York City - Best Community Bookstores in NYC`;
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function TableViewTemplate(rows) {
 | 
					 | 
				
			||||||
        table = "<table>";
 | 
					 | 
				
			||||||
        rows.forEach((row) => {
 | 
					 | 
				
			||||||
          table = table + TableRowTemplate(row);
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
        return table + "</table>";
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function TableRowTemplate({ rowNumber, name, address, city }) {
 | 
					 | 
				
			||||||
        return `<tr id="${rowNumber}" class="spotRow">
 | 
					 | 
				
			||||||
          <td class="name">${name}</td><td>${address}, ${city}</td>
 | 
					 | 
				
			||||||
        </tr>`;
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function SelectedStoreTemplate({
 | 
					 | 
				
			||||||
        name,
 | 
					 | 
				
			||||||
        address,
 | 
					 | 
				
			||||||
        city,
 | 
					 | 
				
			||||||
        postcode,
 | 
					 | 
				
			||||||
        website,
 | 
					 | 
				
			||||||
        events,
 | 
					 | 
				
			||||||
        cafe,
 | 
					 | 
				
			||||||
        description,
 | 
					 | 
				
			||||||
      }) {
 | 
					 | 
				
			||||||
        const isAppleIsh = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
 | 
					 | 
				
			||||||
        return `
 | 
					 | 
				
			||||||
          <h2>${name}</h2>
 | 
					 | 
				
			||||||
          <p class="address">${address}</p>
 | 
					 | 
				
			||||||
          <p></p>
 | 
					 | 
				
			||||||
          <p class="address">
 | 
					 | 
				
			||||||
            ${city}, NY ${postcode}
 | 
					 | 
				
			||||||
          </p>
 | 
					 | 
				
			||||||
          <p>
 | 
					 | 
				
			||||||
            View in:
 | 
					 | 
				
			||||||
            <a
 | 
					 | 
				
			||||||
              href="https://maps.google.com/maps?q=${encodeURIComponent(
 | 
					 | 
				
			||||||
                name
 | 
					 | 
				
			||||||
              )}+${address},${city},NY"
 | 
					 | 
				
			||||||
              target="_blank"
 | 
					 | 
				
			||||||
              >Google Maps</a
 | 
					 | 
				
			||||||
            >
 | 
					 | 
				
			||||||
            ${
 | 
					 | 
				
			||||||
              isAppleIsh
 | 
					 | 
				
			||||||
                ? `
 | 
					 | 
				
			||||||
            <a
 | 
					 | 
				
			||||||
              href="http://maps.apple.com/?q=${encodeURIComponent(
 | 
					 | 
				
			||||||
                name
 | 
					 | 
				
			||||||
              )}&address=${address},${city},NY"
 | 
					 | 
				
			||||||
              target="_blank"
 | 
					 | 
				
			||||||
              >Apple Maps</a
 | 
					 | 
				
			||||||
            >`
 | 
					 | 
				
			||||||
                : ""
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
          </p>
 | 
					 | 
				
			||||||
          <ul>
 | 
					 | 
				
			||||||
            ${
 | 
					 | 
				
			||||||
              website
 | 
					 | 
				
			||||||
                ? `<li><a href="${website}" target="_blank">${cleanWebsite(
 | 
					 | 
				
			||||||
                    website
 | 
					 | 
				
			||||||
                  )}</a></li>`
 | 
					 | 
				
			||||||
                : ""
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            <li class="storeDetails">Events: ${events}</li>
 | 
					 | 
				
			||||||
            <li class="storeDetails">Café: ${cafe}</li>
 | 
					 | 
				
			||||||
          </ul>
 | 
					 | 
				
			||||||
          ${description ? `<p class="description">${description}</p>` : ""}`;
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function hideElementById(id) {
 | 
					 | 
				
			||||||
        const element = document.getElementById(id);
 | 
					 | 
				
			||||||
        if (element !== undefined) {
 | 
					 | 
				
			||||||
          element.classList.add("hidden");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function showElementById(id) {
 | 
					 | 
				
			||||||
        const element = document.getElementById(id);
 | 
					 | 
				
			||||||
        if (element !== undefined) {
 | 
					 | 
				
			||||||
          element.classList.remove("hidden");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function setContent(id, html) {
 | 
					 | 
				
			||||||
        const element = document.getElementById(id);
 | 
					 | 
				
			||||||
        if (element !== undefined) {
 | 
					 | 
				
			||||||
          element.innerHTML = html;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function setTitle(string) {
 | 
					 | 
				
			||||||
        const element = document.getElementsByTagName("title");
 | 
					 | 
				
			||||||
        if (element !== undefined && element.length === 1) {
 | 
					 | 
				
			||||||
          element[0].innerText = string;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      document.addEventListener("DOMContentLoaded", function () {
 | 
					 | 
				
			||||||
        if (window.location.hash !== "") {
 | 
					 | 
				
			||||||
          updateLocation(window.location.hash.substring(1));
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        fetch("/stores.json")
 | 
					 | 
				
			||||||
          .then((resp) => {
 | 
					 | 
				
			||||||
            return resp.json();
 | 
					 | 
				
			||||||
          })
 | 
					 | 
				
			||||||
          .then((data) => {
 | 
					 | 
				
			||||||
            data.sort(function (a, b) {
 | 
					 | 
				
			||||||
              var aname = a.name.toLowerCase();
 | 
					 | 
				
			||||||
              var bname = b.name.toLowerCase();
 | 
					 | 
				
			||||||
              return aname === bname ? 0 : +(aname > bname) || -1;
 | 
					 | 
				
			||||||
            });
 | 
					 | 
				
			||||||
            data.forEach((value, key) => {
 | 
					 | 
				
			||||||
              value.rowNumber = key;
 | 
					 | 
				
			||||||
              value.slug = slugify(value.name);
 | 
					 | 
				
			||||||
            });
 | 
					 | 
				
			||||||
            setContent("storeCount", data.length);
 | 
					 | 
				
			||||||
            window.data = data;
 | 
					 | 
				
			||||||
            loadMap(data);
 | 
					 | 
				
			||||||
          })
 | 
					 | 
				
			||||||
          .catch((err) => {
 | 
					 | 
				
			||||||
            // we'll live with the static cache!
 | 
					 | 
				
			||||||
            console.log(err);
 | 
					 | 
				
			||||||
          });
 | 
					 | 
				
			||||||
      });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function updateLocation(slug) {
 | 
					 | 
				
			||||||
        history.pushState(null, null, `/${slug}`);
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function slugify(str) {
 | 
					 | 
				
			||||||
        return str
 | 
					 | 
				
			||||||
          .toLowerCase()
 | 
					 | 
				
			||||||
          .replace(/é/g, "e")
 | 
					 | 
				
			||||||
          .replace(/&/g, " and ")
 | 
					 | 
				
			||||||
          .replace(/ /g, "-")
 | 
					 | 
				
			||||||
          .replace(/[']+/g, "")
 | 
					 | 
				
			||||||
          .replace(/[^\w-]+/g, "-")
 | 
					 | 
				
			||||||
          .replace(/-+/g, "-")
 | 
					 | 
				
			||||||
          .replace(/^-|-$/g, "");
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function cleanWebsite(str) {
 | 
					 | 
				
			||||||
        return str
 | 
					 | 
				
			||||||
          .toLowerCase()
 | 
					 | 
				
			||||||
          .replace(/^https?:\/\//g, "")
 | 
					 | 
				
			||||||
          .replace(/^www./g, "")
 | 
					 | 
				
			||||||
          .replace(/\/$/g, "");
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function getStoreBySlug(slug) {
 | 
					 | 
				
			||||||
        var ret = false;
 | 
					 | 
				
			||||||
        window.data.forEach((value, key) => {
 | 
					 | 
				
			||||||
          if (value.slug === slug) {
 | 
					 | 
				
			||||||
            ret = value;
 | 
					 | 
				
			||||||
            return false;
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
        return ret;
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function updateViewBySlug(slug) {
 | 
					 | 
				
			||||||
        if (slug === undefined) {
 | 
					 | 
				
			||||||
          showInfo(false);
 | 
					 | 
				
			||||||
        } else {
 | 
					 | 
				
			||||||
          var store = getStoreBySlug(slug);
 | 
					 | 
				
			||||||
          if (store) {
 | 
					 | 
				
			||||||
            updateSelectedStore(store, false);
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function boundingBox(point) {
 | 
					 | 
				
			||||||
        // add some buffer to a point to give the user some leeway
 | 
					 | 
				
			||||||
        return [
 | 
					 | 
				
			||||||
          [point.x - 5, point.y - 5],
 | 
					 | 
				
			||||||
          [point.x + 5, point.y + 5],
 | 
					 | 
				
			||||||
        ];
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function updateSelectedStore(store, pushState = false) {
 | 
					 | 
				
			||||||
        map.flyTo({ center: [store.long, store.lat], zoom: 12 });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        popup.setLngLat([store.long, store.lat]).setHTML(store.name).addTo(map);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        hideElementById("info");
 | 
					 | 
				
			||||||
        setContent("selected", SelectedStoreTemplate(store));
 | 
					 | 
				
			||||||
        showElementById("selected");
 | 
					 | 
				
			||||||
        setTitle(TitleTemplate(store));
 | 
					 | 
				
			||||||
        if (pushState) {
 | 
					 | 
				
			||||||
          updateLocation(store.slug);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function showInfo(pushState = true) {
 | 
					 | 
				
			||||||
        hideElementById("selected");
 | 
					 | 
				
			||||||
        popup.remove();
 | 
					 | 
				
			||||||
        showElementById("info");
 | 
					 | 
				
			||||||
        if (pushState) {
 | 
					 | 
				
			||||||
          updateLocation("info");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      function loadMap(data) {
 | 
					 | 
				
			||||||
        var geolocate = new mapboxgl.GeolocateControl();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        var points = [];
 | 
					 | 
				
			||||||
        data.forEach((value, key) => {
 | 
					 | 
				
			||||||
          points.push({
 | 
					 | 
				
			||||||
            type: "Feature",
 | 
					 | 
				
			||||||
            geometry: {
 | 
					 | 
				
			||||||
              type: "Point",
 | 
					 | 
				
			||||||
              coordinates: [value.long, value.lat],
 | 
					 | 
				
			||||||
            },
 | 
					 | 
				
			||||||
            properties: value,
 | 
					 | 
				
			||||||
          });
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
        map.on("load", function () {
 | 
					 | 
				
			||||||
          map.addLayer({
 | 
					 | 
				
			||||||
            id: "stores",
 | 
					 | 
				
			||||||
            type: "circle",
 | 
					 | 
				
			||||||
            source: {
 | 
					 | 
				
			||||||
              type: "geojson",
 | 
					 | 
				
			||||||
              data: {
 | 
					 | 
				
			||||||
                type: "FeatureCollection",
 | 
					 | 
				
			||||||
                features: points,
 | 
					 | 
				
			||||||
              },
 | 
					 | 
				
			||||||
            },
 | 
					 | 
				
			||||||
            paint: {
 | 
					 | 
				
			||||||
              "circle-radius": 5,
 | 
					 | 
				
			||||||
              "circle-color": "#B9FCFC",
 | 
					 | 
				
			||||||
              "circle-stroke-width": 2,
 | 
					 | 
				
			||||||
              "circle-stroke-color": "#000000",
 | 
					 | 
				
			||||||
            },
 | 
					 | 
				
			||||||
          });
 | 
					 | 
				
			||||||
          map.addControl(new mapboxgl.NavigationControl(), "top-left");
 | 
					 | 
				
			||||||
          map.addControl(geolocate, "top-right");
 | 
					 | 
				
			||||||
          updateViewBySlug(window.location.pathname.split("/")[1]);
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        map.on("click", function (e) {
 | 
					 | 
				
			||||||
          if (!map.getLayer("stores")) {
 | 
					 | 
				
			||||||
            return;
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
          popup.remove();
 | 
					 | 
				
			||||||
          // Use queryRenderedFeatures to get features at a click event's point
 | 
					 | 
				
			||||||
          var features = map.queryRenderedFeatures(boundingBox(e.point), {
 | 
					 | 
				
			||||||
            layers: ["stores"],
 | 
					 | 
				
			||||||
          });
 | 
					 | 
				
			||||||
          // fly to the location of the click event
 | 
					 | 
				
			||||||
          if (features.length) {
 | 
					 | 
				
			||||||
            var store = features[0];
 | 
					 | 
				
			||||||
            // Get coordinates from the symbol and center the map on those coordinates
 | 
					 | 
				
			||||||
            updateSelectedStore(store.properties, true);
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        // indicate that the symbols are clickable by changing the cursor style to 'pointer'.
 | 
					 | 
				
			||||||
        map.on("mousemove", function (e) {
 | 
					 | 
				
			||||||
          if (!map.getLayer("stores")) {
 | 
					 | 
				
			||||||
            return;
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
          var features = map.queryRenderedFeatures(boundingBox(e.point), {
 | 
					 | 
				
			||||||
            layers: ["stores"],
 | 
					 | 
				
			||||||
          });
 | 
					 | 
				
			||||||
          map.getCanvas().style.cursor = features.length ? "pointer" : "";
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        geolocate.on("geolocate", function (e) {
 | 
					 | 
				
			||||||
          map.setZoom(14);
 | 
					 | 
				
			||||||
          popup
 | 
					 | 
				
			||||||
            .setLngLat([e.coords.longitude, e.coords.latitude])
 | 
					 | 
				
			||||||
            .setHTML("Current Location")
 | 
					 | 
				
			||||||
            .addTo(map);
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    </script>
 | 
					 | 
				
			||||||
  </body>
 | 
					 | 
				
			||||||
</html>
 | 
					 | 
				
			||||||
							
								
								
									
										355
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										355
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -9,55 +9,29 @@
 | 
				
			|||||||
      "version": "1.0.0",
 | 
					      "version": "1.0.0",
 | 
				
			||||||
      "license": "BSD-3-Clause",
 | 
					      "license": "BSD-3-Clause",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "cheerio": "^1.0.0",
 | 
					        "cheerio": "^1.0.0-rc.12"
 | 
				
			||||||
        "sitemap": "^8.0.0"
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@types/node": {
 | 
					 | 
				
			||||||
      "version": "17.0.45",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==",
 | 
					 | 
				
			||||||
      "license": "MIT"
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/@types/sax": {
 | 
					 | 
				
			||||||
      "version": "1.2.7",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.7.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==",
 | 
					 | 
				
			||||||
      "license": "MIT",
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "@types/node": "*"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/arg": {
 | 
					 | 
				
			||||||
      "version": "5.0.2",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
 | 
					 | 
				
			||||||
      "license": "MIT"
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/boolbase": {
 | 
					    "node_modules/boolbase": {
 | 
				
			||||||
      "version": "1.0.0",
 | 
					      "version": "1.0.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="
 | 
					      "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/cheerio": {
 | 
					    "node_modules/cheerio": {
 | 
				
			||||||
      "version": "1.1.2",
 | 
					      "version": "1.0.0-rc.12",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.1.2.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz",
 | 
				
			||||||
      "integrity": "sha512-IkxPpb5rS/d1IiLbHMgfPuS0FgiWTtFIm/Nj+2woXDLTZ7fOT2eqzgYbdMlLweqlHbsZjxEChoVK+7iph7jyQg==",
 | 
					      "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "cheerio-select": "^2.1.0",
 | 
					        "cheerio-select": "^2.1.0",
 | 
				
			||||||
        "dom-serializer": "^2.0.0",
 | 
					        "dom-serializer": "^2.0.0",
 | 
				
			||||||
        "domhandler": "^5.0.3",
 | 
					        "domhandler": "^5.0.3",
 | 
				
			||||||
        "domutils": "^3.2.2",
 | 
					        "domutils": "^3.0.1",
 | 
				
			||||||
        "encoding-sniffer": "^0.2.1",
 | 
					        "htmlparser2": "^8.0.1",
 | 
				
			||||||
        "htmlparser2": "^10.0.0",
 | 
					        "parse5": "^7.0.0",
 | 
				
			||||||
        "parse5": "^7.3.0",
 | 
					        "parse5-htmlparser2-tree-adapter": "^7.0.0"
 | 
				
			||||||
        "parse5-htmlparser2-tree-adapter": "^7.1.0",
 | 
					 | 
				
			||||||
        "parse5-parser-stream": "^7.1.2",
 | 
					 | 
				
			||||||
        "undici": "^7.12.0",
 | 
					 | 
				
			||||||
        "whatwg-mimetype": "^4.0.0"
 | 
					 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "engines": {
 | 
					      "engines": {
 | 
				
			||||||
        "node": ">=20.18.1"
 | 
					        "node": ">= 6"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "funding": {
 | 
					      "funding": {
 | 
				
			||||||
        "url": "https://github.com/cheeriojs/cheerio?sponsor=1"
 | 
					        "url": "https://github.com/cheeriojs/cheerio?sponsor=1"
 | 
				
			||||||
@@ -144,34 +118,22 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/domutils": {
 | 
					    "node_modules/domutils": {
 | 
				
			||||||
      "version": "3.2.2",
 | 
					      "version": "3.0.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz",
 | 
				
			||||||
      "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==",
 | 
					      "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "dom-serializer": "^2.0.0",
 | 
					        "dom-serializer": "^2.0.0",
 | 
				
			||||||
        "domelementtype": "^2.3.0",
 | 
					        "domelementtype": "^2.3.0",
 | 
				
			||||||
        "domhandler": "^5.0.3"
 | 
					        "domhandler": "^5.0.1"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "funding": {
 | 
					      "funding": {
 | 
				
			||||||
        "url": "https://github.com/fb55/domutils?sponsor=1"
 | 
					        "url": "https://github.com/fb55/domutils?sponsor=1"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/encoding-sniffer": {
 | 
					 | 
				
			||||||
      "version": "0.2.1",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.1.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==",
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "iconv-lite": "^0.6.3",
 | 
					 | 
				
			||||||
        "whatwg-encoding": "^3.1.1"
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "funding": {
 | 
					 | 
				
			||||||
        "url": "https://github.com/fb55/encoding-sniffer?sponsor=1"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/entities": {
 | 
					    "node_modules/entities": {
 | 
				
			||||||
      "version": "4.5.0",
 | 
					      "version": "4.4.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
 | 
					      "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==",
 | 
				
			||||||
      "engines": {
 | 
					      "engines": {
 | 
				
			||||||
        "node": ">=0.12"
 | 
					        "node": ">=0.12"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
@@ -180,9 +142,9 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/htmlparser2": {
 | 
					    "node_modules/htmlparser2": {
 | 
				
			||||||
      "version": "10.0.0",
 | 
					      "version": "8.0.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.0.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz",
 | 
				
			||||||
      "integrity": "sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==",
 | 
					      "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==",
 | 
				
			||||||
      "funding": [
 | 
					      "funding": [
 | 
				
			||||||
        "https://github.com/fb55/htmlparser2?sponsor=1",
 | 
					        "https://github.com/fb55/htmlparser2?sponsor=1",
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@@ -192,31 +154,9 @@
 | 
				
			|||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "domelementtype": "^2.3.0",
 | 
					        "domelementtype": "^2.3.0",
 | 
				
			||||||
        "domhandler": "^5.0.3",
 | 
					        "domhandler": "^5.0.2",
 | 
				
			||||||
        "domutils": "^3.2.1",
 | 
					        "domutils": "^3.0.1",
 | 
				
			||||||
        "entities": "^6.0.0"
 | 
					        "entities": "^4.3.0"
 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/htmlparser2/node_modules/entities": {
 | 
					 | 
				
			||||||
      "version": "6.0.1",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",
 | 
					 | 
				
			||||||
      "engines": {
 | 
					 | 
				
			||||||
        "node": ">=0.12"
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "funding": {
 | 
					 | 
				
			||||||
        "url": "https://github.com/fb55/entities?sponsor=1"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/iconv-lite": {
 | 
					 | 
				
			||||||
      "version": "0.6.3",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "safer-buffer": ">= 2.1.2 < 3.0.0"
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "engines": {
 | 
					 | 
				
			||||||
        "node": ">=0.10.0"
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/nth-check": {
 | 
					    "node_modules/nth-check": {
 | 
				
			||||||
@@ -231,148 +171,47 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/parse5": {
 | 
					    "node_modules/parse5": {
 | 
				
			||||||
      "version": "7.3.0",
 | 
					      "version": "7.1.2",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
 | 
				
			||||||
      "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",
 | 
					      "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "entities": "^6.0.0"
 | 
					        "entities": "^4.4.0"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "funding": {
 | 
					      "funding": {
 | 
				
			||||||
        "url": "https://github.com/inikulin/parse5?sponsor=1"
 | 
					        "url": "https://github.com/inikulin/parse5?sponsor=1"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/parse5-htmlparser2-tree-adapter": {
 | 
					    "node_modules/parse5-htmlparser2-tree-adapter": {
 | 
				
			||||||
      "version": "7.1.0",
 | 
					      "version": "7.0.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.1.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==",
 | 
					      "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "domhandler": "^5.0.3",
 | 
					        "domhandler": "^5.0.2",
 | 
				
			||||||
        "parse5": "^7.0.0"
 | 
					        "parse5": "^7.0.0"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "funding": {
 | 
					      "funding": {
 | 
				
			||||||
        "url": "https://github.com/inikulin/parse5?sponsor=1"
 | 
					        "url": "https://github.com/inikulin/parse5?sponsor=1"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/parse5-parser-stream": {
 | 
					 | 
				
			||||||
      "version": "7.1.2",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==",
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "parse5": "^7.0.0"
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "funding": {
 | 
					 | 
				
			||||||
        "url": "https://github.com/inikulin/parse5?sponsor=1"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/parse5/node_modules/entities": {
 | 
					 | 
				
			||||||
      "version": "6.0.1",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",
 | 
					 | 
				
			||||||
      "engines": {
 | 
					 | 
				
			||||||
        "node": ">=0.12"
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "funding": {
 | 
					 | 
				
			||||||
        "url": "https://github.com/fb55/entities?sponsor=1"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/safer-buffer": {
 | 
					 | 
				
			||||||
      "version": "2.1.2",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/sax": {
 | 
					 | 
				
			||||||
      "version": "1.4.1",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",
 | 
					 | 
				
			||||||
      "license": "ISC"
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/sitemap": {
 | 
					 | 
				
			||||||
      "version": "8.0.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-8.0.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-+AbdxhM9kJsHtruUF39bwS/B0Fytw6Fr1o4ZAIAEqA6cke2xcoO2GleBw9Zw7nRzILVEgz7zBM5GiTJjie1G9A==",
 | 
					 | 
				
			||||||
      "license": "MIT",
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "@types/node": "^17.0.5",
 | 
					 | 
				
			||||||
        "@types/sax": "^1.2.1",
 | 
					 | 
				
			||||||
        "arg": "^5.0.0",
 | 
					 | 
				
			||||||
        "sax": "^1.2.4"
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "bin": {
 | 
					 | 
				
			||||||
        "sitemap": "dist/cli.js"
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "engines": {
 | 
					 | 
				
			||||||
        "node": ">=14.0.0",
 | 
					 | 
				
			||||||
        "npm": ">=6.0.0"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/undici": {
 | 
					 | 
				
			||||||
      "version": "7.12.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/undici/-/undici-7.12.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-GrKEsc3ughskmGA9jevVlIOPMiiAHJ4OFUtaAH+NhfTUSiZ1wMPIQqQvAJUrJspFXJt3EBWgpAeoHEDVT1IBug==",
 | 
					 | 
				
			||||||
      "engines": {
 | 
					 | 
				
			||||||
        "node": ">=20.18.1"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/whatwg-encoding": {
 | 
					 | 
				
			||||||
      "version": "3.1.1",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "iconv-lite": "0.6.3"
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "engines": {
 | 
					 | 
				
			||||||
        "node": ">=18"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/whatwg-mimetype": {
 | 
					 | 
				
			||||||
      "version": "4.0.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",
 | 
					 | 
				
			||||||
      "engines": {
 | 
					 | 
				
			||||||
        "node": ">=18"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@types/node": {
 | 
					 | 
				
			||||||
      "version": "17.0.45",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw=="
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "@types/sax": {
 | 
					 | 
				
			||||||
      "version": "1.2.7",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.7.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==",
 | 
					 | 
				
			||||||
      "requires": {
 | 
					 | 
				
			||||||
        "@types/node": "*"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "arg": {
 | 
					 | 
				
			||||||
      "version": "5.0.2",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg=="
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "boolbase": {
 | 
					    "boolbase": {
 | 
				
			||||||
      "version": "1.0.0",
 | 
					      "version": "1.0.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="
 | 
					      "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "cheerio": {
 | 
					    "cheerio": {
 | 
				
			||||||
      "version": "1.1.2",
 | 
					      "version": "1.0.0-rc.12",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.1.2.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz",
 | 
				
			||||||
      "integrity": "sha512-IkxPpb5rS/d1IiLbHMgfPuS0FgiWTtFIm/Nj+2woXDLTZ7fOT2eqzgYbdMlLweqlHbsZjxEChoVK+7iph7jyQg==",
 | 
					      "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "cheerio-select": "^2.1.0",
 | 
					        "cheerio-select": "^2.1.0",
 | 
				
			||||||
        "dom-serializer": "^2.0.0",
 | 
					        "dom-serializer": "^2.0.0",
 | 
				
			||||||
        "domhandler": "^5.0.3",
 | 
					        "domhandler": "^5.0.3",
 | 
				
			||||||
        "domutils": "^3.2.2",
 | 
					        "domutils": "^3.0.1",
 | 
				
			||||||
        "encoding-sniffer": "^0.2.1",
 | 
					        "htmlparser2": "^8.0.1",
 | 
				
			||||||
        "htmlparser2": "^10.0.0",
 | 
					        "parse5": "^7.0.0",
 | 
				
			||||||
        "parse5": "^7.3.0",
 | 
					        "parse5-htmlparser2-tree-adapter": "^7.0.0"
 | 
				
			||||||
        "parse5-htmlparser2-tree-adapter": "^7.1.0",
 | 
					 | 
				
			||||||
        "parse5-parser-stream": "^7.1.2",
 | 
					 | 
				
			||||||
        "undici": "^7.12.0",
 | 
					 | 
				
			||||||
        "whatwg-mimetype": "^4.0.0"
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "cheerio-select": {
 | 
					    "cheerio-select": {
 | 
				
			||||||
@@ -429,53 +268,29 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "domutils": {
 | 
					    "domutils": {
 | 
				
			||||||
      "version": "3.2.2",
 | 
					      "version": "3.0.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz",
 | 
				
			||||||
      "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==",
 | 
					      "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "dom-serializer": "^2.0.0",
 | 
					        "dom-serializer": "^2.0.0",
 | 
				
			||||||
        "domelementtype": "^2.3.0",
 | 
					        "domelementtype": "^2.3.0",
 | 
				
			||||||
        "domhandler": "^5.0.3"
 | 
					        "domhandler": "^5.0.1"
 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "encoding-sniffer": {
 | 
					 | 
				
			||||||
      "version": "0.2.1",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.1.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==",
 | 
					 | 
				
			||||||
      "requires": {
 | 
					 | 
				
			||||||
        "iconv-lite": "^0.6.3",
 | 
					 | 
				
			||||||
        "whatwg-encoding": "^3.1.1"
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "entities": {
 | 
					    "entities": {
 | 
				
			||||||
      "version": "4.5.0",
 | 
					      "version": "4.4.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="
 | 
					      "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "htmlparser2": {
 | 
					    "htmlparser2": {
 | 
				
			||||||
      "version": "10.0.0",
 | 
					      "version": "8.0.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.0.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz",
 | 
				
			||||||
      "integrity": "sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==",
 | 
					      "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "domelementtype": "^2.3.0",
 | 
					        "domelementtype": "^2.3.0",
 | 
				
			||||||
        "domhandler": "^5.0.3",
 | 
					        "domhandler": "^5.0.2",
 | 
				
			||||||
        "domutils": "^3.2.1",
 | 
					        "domutils": "^3.0.1",
 | 
				
			||||||
        "entities": "^6.0.0"
 | 
					        "entities": "^4.3.0"
 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "entities": {
 | 
					 | 
				
			||||||
          "version": "6.0.1",
 | 
					 | 
				
			||||||
          "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
 | 
					 | 
				
			||||||
          "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "iconv-lite": {
 | 
					 | 
				
			||||||
      "version": "0.6.3",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
 | 
					 | 
				
			||||||
      "requires": {
 | 
					 | 
				
			||||||
        "safer-buffer": ">= 2.1.2 < 3.0.0"
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "nth-check": {
 | 
					    "nth-check": {
 | 
				
			||||||
@@ -487,75 +302,21 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "parse5": {
 | 
					    "parse5": {
 | 
				
			||||||
      "version": "7.3.0",
 | 
					      "version": "7.1.2",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
 | 
				
			||||||
      "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",
 | 
					      "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "entities": "^6.0.0"
 | 
					        "entities": "^4.4.0"
 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					 | 
				
			||||||
        "entities": {
 | 
					 | 
				
			||||||
          "version": "6.0.1",
 | 
					 | 
				
			||||||
          "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
 | 
					 | 
				
			||||||
          "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "parse5-htmlparser2-tree-adapter": {
 | 
					    "parse5-htmlparser2-tree-adapter": {
 | 
				
			||||||
      "version": "7.1.0",
 | 
					      "version": "7.0.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.1.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==",
 | 
					      "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "domhandler": "^5.0.3",
 | 
					        "domhandler": "^5.0.2",
 | 
				
			||||||
        "parse5": "^7.0.0"
 | 
					        "parse5": "^7.0.0"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "parse5-parser-stream": {
 | 
					 | 
				
			||||||
      "version": "7.1.2",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==",
 | 
					 | 
				
			||||||
      "requires": {
 | 
					 | 
				
			||||||
        "parse5": "^7.0.0"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "safer-buffer": {
 | 
					 | 
				
			||||||
      "version": "2.1.2",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "sax": {
 | 
					 | 
				
			||||||
      "version": "1.4.1",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg=="
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "sitemap": {
 | 
					 | 
				
			||||||
      "version": "8.0.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-8.0.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-+AbdxhM9kJsHtruUF39bwS/B0Fytw6Fr1o4ZAIAEqA6cke2xcoO2GleBw9Zw7nRzILVEgz7zBM5GiTJjie1G9A==",
 | 
					 | 
				
			||||||
      "requires": {
 | 
					 | 
				
			||||||
        "@types/node": "^17.0.5",
 | 
					 | 
				
			||||||
        "@types/sax": "^1.2.1",
 | 
					 | 
				
			||||||
        "arg": "^5.0.0",
 | 
					 | 
				
			||||||
        "sax": "^1.2.4"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "undici": {
 | 
					 | 
				
			||||||
      "version": "7.12.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/undici/-/undici-7.12.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-GrKEsc3ughskmGA9jevVlIOPMiiAHJ4OFUtaAH+NhfTUSiZ1wMPIQqQvAJUrJspFXJt3EBWgpAeoHEDVT1IBug=="
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "whatwg-encoding": {
 | 
					 | 
				
			||||||
      "version": "3.1.1",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",
 | 
					 | 
				
			||||||
      "requires": {
 | 
					 | 
				
			||||||
        "iconv-lite": "0.6.3"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "whatwg-mimetype": {
 | 
					 | 
				
			||||||
      "version": "4.0.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg=="
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,8 +14,7 @@
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  "homepage": "https://www.nycbookstores.org/",
 | 
					  "homepage": "https://www.nycbookstores.org/",
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "cheerio": "^1.0.0",
 | 
					    "cheerio": "^1.0.0-rc.12"
 | 
				
			||||||
    "sitemap": "^8.0.0"
 | 
					 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "type": "module"
 | 
					  "type": "module"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +0,0 @@
 | 
				
			|||||||
Sitemap: https://nycbookstores.org/sitemap-index.xml
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										522
									
								
								stores.json
									
									
									
									
									
								
							
							
						
						
									
										522
									
								
								stores.json
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user