https://github.com/a11ywatch/common-js
A11yWatch common javascript files
https://github.com/a11ywatch/common-js
a11ywatch
Last synced: 2 months ago
JSON representation
A11yWatch common javascript files
- Host: GitHub
- URL: https://github.com/a11ywatch/common-js
- Owner: a11ywatch
- License: mit
- Created: 2021-02-07T23:09:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T23:47:21.000Z (about 1 year ago)
- Last Synced: 2025-01-01T09:41:46.296Z (4 months ago)
- Topics: a11ywatch
- Language: TypeScript
- Homepage:
- Size: 799 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @a11ywatch/website-source-builder
This package is used throughout the A11yWatch eco system as re-usable utils.
The purpose of this lib is to handle custom edge cases that are required for the system and found being used throughout the system like converters and data handling functions.## Installation
`npm install @a11ywatch/website-source-builder`
```typescript
import { sourceBuild } from "@a11ywatch/website-source-builder"const data = sourceBuild("https://a11ywatch.com");
// output {
// pathname: "/",
// domain: "a11ywatch.com",
// pageUrl: "https://a11ywatch.com",
// url: "https://a11ywatch.com"
// }
```## Utils
This repo handles the usage limits that map to each plan or role. The usage is returned as ms.
The other utils are set to build custom shapes that help display or use values in A11yWatch that
may just be used in memory.