Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sleistner authored Jan 1, 2025
1 parent 27d3725 commit 0efa694
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,20 @@ npm install @enter-at/iac-label

## Usage
```typescript
import { Label } from '@enter-at/iac-label';
import { Label, Context } from '@enter-at/iac-label';
```

**Creating a Label**
You can create a Label instance by providing the required properties via the `ConstructorProps` interface.

```typescript
const context = {
const context: Context = {
project: 'my-project',
environment: 'dev',
service: 'my-service',
};

const label = new Label({
project: 'my-project',
environment: 'dev',
service: 'my-service',
});
const label = new Label(context);
```

Alias for `new Label()`:
Expand Down

0 comments on commit 0efa694

Please sign in to comment.