Skip to content

Commit

Permalink
chore: improve npm and dev readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed-almujil committed May 1, 2023
1 parent 8151f41 commit 521f412
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Import library
Get on-chain NFT mints/transfers/burns including their metadata.

# Get started
```
import * as onChainNFT from 'on-chain-nfts'
```
# ETH
## ETH
Set ETH provider
```
onChainNFT.setEthProvider(process.env.PROVIDER_URL);
Expand Down
11 changes: 11 additions & 0 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,15 @@ onChainNFT.setArweaveHostnames(['arweave.net']);
Run tests locally, make sure PROVIDER_URL ENV variable is set then run
```
ts-node test.ts
```

### **NPM publishing**

Build
```
npm run build
```
Publish. Only files in the `dist` folder will be pushed
```
npm publish
```

0 comments on commit 521f412

Please sign in to comment.