Skip to content

Commit

Permalink
Merge pull request #9 from hildjj/license
Browse files Browse the repository at this point in the history
doc tweaks
  • Loading branch information
hildjj committed Dec 3, 2023
2 parents d698cba + 504c548 commit 9997946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 peggyjs
Copyright (c) 2023 peggyjs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ npm install peggy-tag
## Usage

```js
import peggy from "../lib/index.js";
import peggy from "peggy-tag";

const parse = peggy`foo = $("f" "o"+)`;
console.log(parse("foooo")); // "foooo"
Expand All @@ -26,7 +26,6 @@ console.log(traceParse("123"));
## Notes:

- This currently is only tested on Node 18+, no browser version yet.
- Can't be used with `require`.
- This is for non-performance-sensitive code (e.g. prototypes), because the
parser with be generated every time the template is evaluated.

Expand Down

0 comments on commit 9997946

Please sign in to comment.