Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dni/lnbits-client-browser
LNbits Javascript Client for Browsers
https://github.com/dni/lnbits-client-browser
Last synced: 9 days ago
JSON representation
LNbits Javascript Client for Browsers
- Host: GitHub
- URL: https://github.com/dni/lnbits-client-browser
- Owner: dni
- Created: 2023-07-04T10:55:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-04T11:05:02.000Z (over 1 year ago)
- Last Synced: 2024-04-14T18:48:50.846Z (7 months ago)
- Language: TypeScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## @lnbits/[email protected]
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
Environment
* Node.js
* Webpack
* BrowserifyLanguage level
* ES5 - you must have a Promises/A+ library installed
* ES6Module system
* CommonJS
* ES6 module systemIt can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
### Building
To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```### Publishing
First build the package then run ```npm publish```
### Consuming
navigate to the folder of your consuming project and run one of the following commands.
_published:_
```
npm install @lnbits/[email protected] --save
```_unPublished (not recommended):_
```
npm install PATH_TO_GENERATED_PACKAGE --save