Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digital4better/carbonara
https://github.com/digital4better/carbonara
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/digital4better/carbonara
- Owner: digital4better
- License: mit
- Created: 2021-03-21T19:44:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T10:38:18.000Z (over 1 year ago)
- Last Synced: 2023-09-17T07:52:23.247Z (10 months ago)
- Language: TypeScript
- Size: 22.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-green-software - Carbonara - Digital4Better
README
# Carbonara
This is a custom element to compute web navigation carbon footprint.
## Usage
### CDN```html
Your navigation has emitted so far.
```### Locally
```bash
npm install @digital4better/carbonara
``````html
Your navigation has emitted so far.
```## Supported properties
| Attribute | Type | Default value | Description |
| --- | --- | --- | --- |
| position | "top", "bottom" | "top" | the tooltip position |
| persistance | "none", "session", "local" | "none" | when set to "none" the footprint will be reset on page refresh. "local" and "session" will persist footprint in navigator storage. |