Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sajadtorkamani/funny-joke
An NPM package that gives you a joke.
https://github.com/sajadtorkamani/funny-joke
Last synced: 23 days ago
JSON representation
An NPM package that gives you a joke.
- Host: GitHub
- URL: https://github.com/sajadtorkamani/funny-joke
- Owner: sajadtorkamani
- Created: 2023-10-15T11:45:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-16T21:22:56.000Z (about 1 year ago)
- Last Synced: 2024-11-13T17:49:43.800Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://sajadtorkamani.com/how-to-publish-an-npm-package/
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Install
```shell
npm install funny-joke
```## Usage
### Use as ESM module
```javascript
import funnyJoke from 'funny-joke'
```### Use as CommonJS module
```javascript
const funnyJoke = require('funny-joke')
```### Use in browser from a script tag
```html
console.log(window.funnyJoke())
```