open-index/open-npm huggingface dataset:
npm package: @hoto/alfred-js-template
Description: Alfred workflow JS template
Author: Andrzej Rehmann
Latest version: 1.0.0

# Alfred JS template name

Alfred JS template description

```
A template repository for an Alfred workflow using JavaScript.

1. Globally replace:
   - alfred-js-template
   - Alfred JS template name
   - Alfred JS template description
2. Change the icon
3. Delete this block
```

### Install

    npm install --location=global @hoto/alfred-js-template

### Develop

Create symlink for rapid workflow development:

    npm install --location=global

Publish: 

    git commit -am "Commit message"
    npm version patch
    npm publish --access public


<a href="https://www.flaticon.com/free-icons/window" title="window icons">Window icons created by winnievinzence - Flaticon</a>
npm package: @hoto/alfred-my-jira-tickets
Description: Alfred workflow to fetch all open JIRA tickets assigned to you.
Author: Andrzej Rehmann
Latest version: 1.0.6

# My JIRA Tickets

Alfred workflow to fetch all open JIRA tickets assigned to you.  

Functionality:

* copies the ticket id to clipboard `↩` (e.g. `GJ-1234`)
* copies the git branch name to clipboard `⌃↩` (e.g. `GJ-1234-fix-a-bug`)
* copies the PR description to clipboard `⌥↩` (e.g. `GJ-1234 Fix a bug`)
* opens the ticket url in the browser `⌘↩`

![](.images/01.png)

Built in one minute cache.

### Install

    npm install --global @hoto/alfred-my-jira-tickets
    # will open a text editor where you enter secrets (jira url, email, api key)

<a href="https://www.flaticon.com/free-icons/boarding-pass" title="boarding pass icons">Boarding pass icons created by winnievinzence - Flaticon</a>
npm package: @hoto/alfred-path-to-regex
Description: Convert endpoint path to regex
Author: Andrzej Rehmann
Latest version: 1.0.8

# Alfred path to regex

Alfred workflow to convert path to regex.  
Useful for searching for endpoints in IDEs.

### Install

    npm install --location=global @hoto/alfred-path-to-regex

### Example

Converts any parts of the path to `.*` only if:
* if part contains any of: `{`, `:`, `%s`, `0-9` 
* if part is all caps

![](.images/01.png)

![](.images/02.png)

### Develop

Create symlink for rapid workflow development:

    npm install --location=global

Publish:

    git commit -am "Commit message"
    npm version patch
    npm publish --access public

<a href="https://www.flaticon.com/free-icons/path" title="path icons">Path icons created by Graphix Dxinerz - Flaticon</a>
npm package: @hoto/alfred-smolerize-workflow
Description: Alfred workflow JS template
Author: Andrzej Rehmann
Latest version: 1.0.1

# Smolerize all the things

![smolerize.gif](smolerize.gif)

### Install

    npm install --location=global @hoto/alfred-smolerize-workflow

### Develop

Create symlink for rapid workflow development:

    npm install --location=global

Publish: 

    git commit -am "Commit message"
    npm version patch
    npm publish --access public


<a href="https://www.flaticon.com/free-icons/pinch" title="pinch icons">Pinch icons created by Freepik - Flaticon</a>
npm package: @hoto/alfred-uuid-ulid-generator
Description: Generate UUID & ULID
Latest version: 1.0.4

# Alfred UUID & ULID generator workflow

Alfred workflow to generate random UUIDs & ULIDs.

* [UUID](https://github.com/ulid/javascript) - Universally Unique IDentifier (e.g. `01827074-6E45-DF55-2C28-533EC18EAD07`)
* [ULID](https://github.com/uuidjs/uuid) - Universally unique Lexicographically sortable IDentifier (e.g. `01G9R78VJ5VXAJRA2K7V0RXB87`)

### Install

    npm install --global @hoto/alfred-uuid-ulid-generator

### Why use ULIDs vs UUIDs

Example ULID conversion:

    ULID:              01G9R78VJ5VXAJRA2K7V0RXB87
    ULID as UUID v4:   01827074-6E45-DF55-2C28-533EC18EAD07
    ULID as timestamp: 2022-08-06T00:00:54.853Z

ULIDs features:
* Lexicographically sortable (even when converted to UUID v4)
* Compatible with UUIDs 128 format
* Shorter than UUIDs, 26 character string vs 36 characters for UUID
* Encoded using Crockford’s Base32 alphabet (0123456789ABCDEFGHJKMNPQRSTVWXYZ)
    * Excludes I, L, O, and U letters to avoid any unexpected confusion
    * UUID uses hex digits plus hyphens (0-9, A-F)
* The timestamp is accurate to the millisecond

ULID is made up of two base32 encoded numbers, a UNIX timestamp followed by a random number:

    01G9R78VJ5      VXAJRA2K7V0RXB87

    |----------|    |----------------|
    Timestamp          Randomness
    48bits             80bits

### Develop

Create symlink for rapid workflow testing:

    npm install -g

<a href="https://www.flaticon.com/free-icons/fingerprint" title="fingerprint icons">Fingerprint icons created by HAJICON - Flaticon</a>
npm package: @hotoo/js2json
Description: Convert JavaScript Object to JSON format
Author: 闲耘
Latest version: 1.0.0

# README

Convert JavaScript Object/Array to JSON format via node Stream.

## Example

copy js object into a.json file:

```json
{
  str: 'str',
  num: 1,
  boo: true,
  nil: null,
  arr: [0, '1', true],
  obj: {
    str: 'obj.str',
    num: 2,
    boo: false,
    nil: null,
  },
}
```

and use js2json commend to convert:

```bash
$ cat a.json | js2json
{
  "str": "str",
  "num": 1,
  "boo": true,
  "nil": null,
  "arr": [
    0,
    "1",
    true
  ],
  "obj": {
    "str": "obj.str",
    "num": 1.2,
    "boo": false,
    "nil": null
  }
}
```

## for Vim user

```vimrc
autocmd FileType json setlocal formatprg=js2json|jsonmatter " npm i @hotoo/js2json jsonmatter -g
```

Convert and format JavaScript object to JSON format, by command `gggqG` in normal mode.
npm package: @hotoo/orderby
Description: SQL like order by
Author: 闲耘
Latest version: 2.0.1

# README

[![NPM version][npm-badge]][npm-url]
[![Build Status][travis-badge]][travis-url]
[![Coverage Status][coveralls-badge]][coveralls-url]
[![Gittip][gittip-image]][gittip-url]
[![NPM downloads][npm-downloads]][npm-url]


[npm-badge]: https://img.shields.io/npm/v/@hotoo/orderby.svg?style=flat
[npm-url]: https://www.npmjs.com/package/@hotoo/orderby
[npm-downloads]: http://img.shields.io/npm/dm/@hotoo/orderby.svg?style=flat
[travis-badge]: https://travis-ci.org/hotoo/orderby.svg?branch=master
[travis-url]: https://travis-ci.org/hotoo/orderby
[coveralls-badge]: https://coveralls.io/repos/hotoo/orderby/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/r/hotoo/orderby
[gittip-image]: https://img.shields.io/gittip/hotoo.svg?style=flat-square
[gittip-url]: https://www.gittip.com/hotoo/


SQL like syntax (ORDER BY) general sorting algorithm.

## USAGE

```js
const order = require('@hotoo/orderby');

[
 { a: 2, b: 'b' },
 { a: 1, b: 'b' },
 { a: 2, b: 'a' },
]
.sort(order.by('a', 'b DESC'));
```

return sorted array:

```js
[
 { a: 1, b: 'b' },
 { a: 2, b: 'b' },
 { a: 2, b: 'a' },
]
```
npm package: @hotoo/react-sanitized-html
Description: A React component that will sanitize user-inputted HTML code, using the popular sanitize-html package
Author: William Wong
Latest version: 2.0.2

# react-sanitized-html

[![npm version](https://badge.fury.io/js/react-sanitized-html.svg)](https://npmjs.com/package/react-sanitized-html) [![Build Status](https://travis-ci.org/compulim/react-sanitized-html.svg?branch=master)](https://travis-ci.org/compulim/react-sanitized-html) [![Node.js dependencies](https://david-dm.org/compulim/react-sanitized-html.svg)](https://david-dm.org/compulim/react-sanitized-html) [![npm downloads](https://img.shields.io/npm/dm/react-sanitized-html.svg)](https://npmjs.com/package/react-sanitized-html)

A React component that will sanitize user-inputted HTML code, using the popular [`sanitize-html`](https://npmjs.com/package/sanitize-html) package.

# Install

This React component requires both [`react`](https://npmjs.com/package/react) and [`sanitize-html`](https://npmjs.com/package/sanitize-html) to be installed to work. We marked both as peer dependency so you could use the version of React as it fit.

Run `npm install react-sanitized-html sanitize-html --save` to install this package.

> Because both [`htmlparser2`](https://npmjs.com/packages/htmlparser2) and [`domhandler`](https://npmjs.com/packages/domhandler) (dependencies of [`sanitize-html`](https://npmjs.com/packages/sanitize-html)) requires [ES2015 Property Accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_Accessors) for shorthanded properties. Thus, this component cannot be used in IE8.

> In [`sanitize-html@1.14.1`](https://npmjs.com/packages/sanitize-html), shorthands are not used. Thus, it is possible to build a workaround for IE8 by customizing both [`htmlparser2`] and [`domhandler`] without shorthands.

# Example usage

```jsx
import SanitizedHTML from 'react-sanitized-html';

const HTML_FROM_USER = '<a href="http://bing.com/">Bing</a>';

ReactDOM.render(
  <SanitizedHTML html={ HTML_FROM_USER } />,
  document.getElementById('reactRoot')
);
```

It will output as:

```html
<div>
  <a href="http://bing.com/">Bing</a>
</div>
```

# Options

You can add [`sanitize-html`](https://npmjs.com/package/sanitize-html) options as props. For example,

```html
<SanitizedHTML
  allowedAttributes={{ 'a': ['href'] }}
  allowedTags={['a']}
  html={ `<a href="http://bing.com/">Bing</a>` }
/>
```

You can find more options [here](https://npmjs.com/package/sanitize-html).

# Development

To setup your development environment, after cloning the repository, run the following steps.

```
npm install react sanitize-html
npm install --only=development
```

Then run `npm test` to run all tests.

# Contribution

Like us? [Star](https://github.com/compulim/react-sanitized-html/stargazers) us.

Found an issue? [File](https://github.com/compulim/react-sanitized-html/issues) us an issue.