Skip to content

Commit

Permalink
feat: expose genObjectKey and wrapInDelimiters utils
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 16, 2024
1 parent 35c1a2f commit 227ec06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@ Generate a typescript `export type` statement.

Generate typescript object type.

## Utils

### `genObjectKey(key)`

Generate a safe javascript variable name for an object key.

### `wrapInDelimiters(lines, indent, delimiters, withComma)`

Wrap an array of strings in delimiters.

<!-- /automd -->

## Contribution
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from "./object";
export * from "./string";
export * from "./types";
export * from "./typescript";
export * from "./utils";

0 comments on commit 227ec06

Please sign in to comment.