Skip to content

Commit

Permalink
publish to jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
Atrox committed Apr 20, 2024
1 parent 49d02e5 commit 7746a55
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fatrox%2Fhaikunatorjs%2Fbadge&style=flat-square)](https://actions-badge.atrox.dev/atrox/haikunatorjs/goto)
[![Latest Version](https://img.shields.io/npm/v/haikunator.svg?style=flat-square)](https://www.npmjs.com/package/haikunator)
[![JSR Version](https://img.shields.io/jsr/v/%40atrox/haikunator?style=flat-square)](https://jsr.io/@atrox/haikunator)
[![Coverage Status](https://img.shields.io/codecov/c/github/Atrox/haikunatorjs.svg?style=flat-square)](https://codecov.io/gh/Atrox/haikunatorjs)

Generate Heroku-like random names to use in your node applications.
Expand All @@ -12,13 +13,16 @@ Generate Heroku-like random names to use in your node applications.
npm install --save haikunator
```

```
deno add @atrox/haikunator
```

## Usage

Haikunator is pretty simple.

```javascript
var Haikunator = require('haikunator')
// ES6: import Haikunator from 'haikunator'
import Haikunator from 'haikunator'

// Instantiate Haikunator without options
var haikunator = new Haikunator()
Expand Down Expand Up @@ -67,7 +71,7 @@ haikunator.haikunate({ tokenLength: 0, delimiter: '' }) // => "billowingleaf"
The following options are available:

```javascript
var Haikunator = require('haikunator')
import Haikunator from 'haikunator'

var haikunator = new Haikunator({
adjectives: ['custom', 'adjectives'],
Expand Down
8 changes: 8 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@atrox/haikunator",
"version": "2.1.2",
"exports": "./src/index.ts",
"publish": {
"include": ["LICENSE", "README.md", "jsr.json", "src/**/*.ts"]
}
}

0 comments on commit 7746a55

Please sign in to comment.