open-index/open-npm huggingface dataset:
npm package: @raha.group/esbuild
Description: Use esbuild without installing
Latest version: 0.0.5

# esbuild
## Start a web server
To preview your project, use the following command:
```shell
deno run --allow-net --allow-read jsr:@raha/esbuild application.js --outfile=application.min.js --servedir=./ --minify
deno run --allow-net --allow-read npm:@raha.group/esbuild application.js --outfile=application.min.js --servedir=./ --minify
deno run --allow-net --allow-read https://esm.sh/@raha.group/esbuild application.js --outfile=application.min.js --servedir=./ --minify
```

## Build a JS file
```shell
deno run --allow-read --allow-write --allow-net jsr:@raha/esbuild application.js --outfile=application.min.js --minify --bundle
deno run --allow-read --allow-write --allow-net npm:@raha.group/esbuild application.js --outfile=application.min.js --minify --bundle
deno run --allow-read --allow-write --allow-net https://esm.sh/@raha.group/esbuild application.js --outfile=application.min.js --minify --bundle
```
npm package: @raha.group/persian-fonts
Description: The most popular Persian fonts are included in this package.
Latest version: 1.0.3

# Persian fonts
The most popular Persian fonts are included in this package.
- IranNastaliq
- Lotus
- Morvarid
- Nazanin
- Titr
- Traffic
- Yekan
- Zar
- Besmellah
- ShapedBesmellah

# Installation
## CDN
Import library from the UNPKG CDN for fast and easy setup:
### In web browser
Simply include persian-fonts in your html `<header>` tag.
```html
<link rel="stylesheet" href="//unpkg.com/@raha.group/persian-fonts" />
```
## NPM registry
Use the package manager npm to install persian-fonts.
```shell
$ npm install @raha.group/persian-fonts
```
Fonts will be copied to node_modules/@raha.group/persian-fonts directory.

# Usage
![Sample of خوش‌نویسی](https://unpkg.com/@raha.group/persian-fonts/sample.png)
```html
<html>
	<head>
		<link rel="stylesheet" href="//unpkg.com/@raha.group/persian-fonts" />
		<style>
			.sample {
				font-family: 'IranNastaliq';
				font-size: 2rem;
			}
		</style>
	</head>
	<body>
		<p class="sample">
شاه‌نشینِ چشمِ من، تکیه‌گهِ خیـالِ توست<br />
جایِ دعاست شاهِ من، بی تو مباد جایِ تو
		</p>
	</body>
</html>
```
npm package: @raha.group/self-cert
Description: This is a simple library for generating a self-signed x509 keypair and certificate.
Latest version: 1.0.2

# self-cert
This is a simple library for generating a self-signed x509 keypair and certificate.

# Installation
## CDN
Import library from the UNPKG CDN for fast and easy setup:
```javascript
import {create} from "//unpkg.com/@raha.group/self-cert?module";
```
## NPM registry
Use the package manager npm to install self-cert.
```shell
$ npm install "@raha.group/self-cert"
```

# Usage
## Self-signed Certificate
1) Create a [new project](https://docs.npmjs.com/cli/v7/commands/npm-init) with the entry point "index.mjs".
2) Add the project dependency by `npm i "@raha.group/self-cert"`.
3) Put the following script in file "index.mjs".
```javascript
import {create as createCertificate} from '@raha.group/self-cert';
import fs from 'fs/promises';
import os from 'os';

let hosts = [];
for (let networkInterface of Object.values(os.networkInterfaces())) {
	for (let assignedNetworkAddress of networkInterface) {
		hosts.push(assignedNetworkAddress.address);
	}
}

let certificate = createCertificate({
	domains: [ // List the hostnames (including wildcards) on your origin that the certificate should protect.
		'localhost',
		'*.local', // wildcards
		...hosts
	],
	expires: new Date(2025, 1),
	/*
	attributes: {
		commonName: domains[0],
		countryName: 'IR',
		stateName: 'Isfahan',
		locality: 'Isfahan',
		organizationName: 'None',
	},
	keySize: 2048,
	*/
});
await fs.writeFile('privateKey.pem', certificate.privateKey);
await fs.writeFile('publicKey.pem', certificate.publicKey);
await fs.writeFile('fullChain.pem', certificate.fullChain);
```

## Basic HTTPS
Here is an example for creating an SSL key/cert on the fly, and running an HTTPS server on port 443. Use https://localhost:443 to access created server.
```javascript
import {create as createCertificate} from '@raha.group/self-cert';
import https from 'https';

let certificate = createCertificate({
	domains: ['localhost'],
});
https.createServer({key: certificate.privateKey, cert: certificate.fullChain}, function(request, response) {
	response.end('Hello World :-)');
}).listen(443);
```