
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
buildinglink
Advanced tools
A TypeScript client for interacting with the BuildingLink system, handling various authentication flows and redirects.
This is an unofficial TypeScript client for logging into and scraping BuildingLink content.
Install the package using your favorite package manager.
# Using npm
npm install buildinglink
This client is essentially a wrapper around the native fetch API, which does an auto-login as needed and stores session cookies for you.
import { BuildingLink } from "buildinglink";
const client = new BuildingLink({
username: "buildinglink_username",
password: "buildinglink_password",
});
// Get Deliveries
const url = "https://www.buildinglink.com/V2/Tenant/Deliveries/Deliveries.aspx";
const response = await client.fetch(url);
// Shorthand for tenant pages
const response = await client.page("Deliveries/Deliveries.aspx");
Module | Method | Description |
---|---|---|
Library | getLibrary() | Access documents from the BuildingLink Library |
Announcements | getAnnouncements() | Access announcements from the BuildingLink |
Events | getEvents(from: Date, to: Date) | Access events from the BuildingLink Calendar |
Occupant | getOccupant() | Access the current occupant's profile |
Buildings | getBuildings() | Access buildings associated with the BuildingLink account |
User | getUser() | Access the current user signed into BuildingLink |
Vendors | getVendors() | Access preferred vendors from the BuildingLink |
Deliveries | getDeliveries() | Access deliveries from the BuildingLink |
Since it's likely you'll be using this client for scraping, the response also includes a parsed version of the HTML document using node-html-parser
. You can access it on html responses from the document
property.
const { document } = await client.page("Deliveries/Deliveries.aspx");
document.querySelectorAll(".delivery-item").forEach((item) => {
const deliveryId = item.getAttribute("data-delivery-id");
const deliveryDate = item.querySelector(".delivery-date")?.textContent;
console.log(`Delivery ID: ${deliveryId}, Date: ${deliveryDate}`);
});
# Run tests
pnpm test
# Watch mode for development
pnpm test:watch
# Get that sweet, sweet coverage report
pnpm test:coverage
Found a bug? Want to add a feature? We'd love your help!
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazingness'
)git push origin feature/amazing-feature
)MIT - Because sharing is caring! See LICENSE for more details.
If this package helped you automate your BuildingLink tasks, give it a star!
Made with ❤️ and ☕️ by a human who got tired of clicking through BuildingLink manually.
FAQs
A TypeScript client for interacting with the BuildingLink system, handling various authentication flows and redirects.
We found that buildinglink demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.