Skip to content

Commit 197e47b

Browse files
committed
chore: add usage
1 parent b91632b commit 197e47b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,28 @@ A loom for unicode data files
1111
npm install @mojis/loomicode
1212
```
1313

14+
## Usage
15+
16+
```ts
17+
import { sequences } from "@mojis/loomicode";
18+
19+
const result = sequences({
20+
separator: ";",
21+
commentPrefix: "#",
22+
version: "1.0",
23+
input: [
24+
{
25+
codePoints: ["1F600", "1F601"],
26+
type: "emoji",
27+
description: "smiling face",
28+
comment: "happy expression"
29+
}
30+
],
31+
});
32+
33+
console.log(result);
34+
```
35+
1436
## 📄 License
1537

1638
Published under [MIT License](./LICENSE).

0 commit comments

Comments
 (0)