Skip to content

Commit

Permalink
Merge pull request #6 from mayank99/docs
Browse files Browse the repository at this point in the history
fix package name in docs
  • Loading branch information
trusktr authored Dec 16, 2024
2 parents 067c8f4 + ac639de commit c233279
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ Existing conversations (please notify if this needs an update):
## Install

```shell
npm install custom-attributes --save
npm install @lume/custom-attributes --save
```

Add as a script tag:

```html
<script src="node_modules/custom-attributes/attr.js" defer></script>
<script src="node_modules/@lume/custom-attributes/dist/index.js" type="module"></script>
```

Or import as an ES module:

```js
import customAttributes from 'custom-attributes'
import {customAttributes} from '@lume/custom-attributes'
```

Or you can just import the CustomAttributeRegistry and create your own instance:

```js
import {CustomAttributeRegistry} from 'custom-attributes'
import {CustomAttributeRegistry} from '@lume/custom-attributes'

const customAttributes = new CustomAttributeRegistry(document)
```
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/matthewp/custom-attributes.git"
"url": "git+https://github.com/lume/custom-attributes.git"
},
"keywords": [
"web",
Expand All @@ -33,9 +33,9 @@
"author": "Matthew Phillips",
"license": "BSD-2-Clause",
"bugs": {
"url": "https://github.com/matthewp/custom-attributes/issues"
"url": "https://github.com/lume/custom-attributes/issues"
},
"homepage": "https://github.com/matthewp/custom-attributes#readme",
"homepage": "https://github.com/lume/custom-attributes#readme",
"devDependencies": {
"@lume/cli": "^0.14.0",
"prettier": "3.0.3",
Expand Down

0 comments on commit c233279

Please sign in to comment.