
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
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.
The npm package buildinglink receives a total of 2 weekly downloads. As such, buildinglink popularity was classified as not popular.
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.