open-index/open-npm huggingface dataset:
npm package: @saswatb/director-worker
Description: A library for creating workers which provide tools for Director.
Author: Saswat Bhattacharya
Latest version: 0.1.3

# @saswatb/director-worker

A library for creating workers which provide tools for Director.

## Installation

```bash
npm install @saswatb/director-worker
```

If using this library in node, you will also need to install the `ws` package.

```bash
npm install ws
```

## Usage

The following example shows how to create a worker which provides a tool to list files in a directory.
You can get the API key from your project's dashboard within Director.

```typescript
import { Worker } from "@saswatb/director-worker";

const worker = new Worker({
  host: "director-production.up.railway.app",
  apiKey: process.env.DIRECTOR_API_KEY,
});

worker.registerTool(
  "browse-code",
  "List files in the code directory, input should be the subfolder to list (can be empty)",
  async (input) => {
    // Importing path and fs modules using ES6 syntax

    // Joining path of directory
    const directoryPath = path.join(env.CODE_DIRECTORY, input);
    console.log("browse-code directory path", directoryPath);

    try {
      // Reading directory and getting files
      const files = await fs.readdir(directoryPath, { withFileTypes: true });

      return files
        .map((f) =>
          JSON.stringify({ name: f.name, isDirectory: f.isDirectory() })
        )
        .join("\n");
    } catch (err) {
      // Handling error
      console.log("Unable to scan directory: ", err);
      return "Unable to scan directory: " + err;
    }
  }
);

worker.start();
```

## Community

Join the [Discord](https://discord.gg/TBdaSaqHWq) to chat with the community and the team.
npm package: @saswatb/eslint-plugin-sort-sx-prop
Description: Sorts the sx prop from ui libraries like MUI
Author: Saswat Bhattacharya
Latest version: 0.2.0

# eslint-plugin-sort-sx-prop

Sorts the sx prop from ui libraries like MUI

## Installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npm i eslint --save-dev
```

Next, install `eslint-plugin-sort-sx-prop`:

```sh
npm install @saswatb/eslint-plugin-sort-sx-prop --save-dev
```

## Usage

Add `sort-sx-prop` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
  "plugins": ["@saswatb/eslint-plugin-sort-sx-prop"]
}
```

Then configure the rules you want to use under the rules section.

```json
{
  "rules": {
    "@saswatb/eslint-plugin-sort-sx-prop/sort-sx-prop": [
      "error",
      { "addWhitespace": true }
    ]
  }
}
```

## Rules

<!-- begin auto-generated rules list -->

🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).

| Name                                       | Description      | 🔧  |
| :----------------------------------------- | :--------------- | :-- |
| [sort-sx-prop](docs/rules/sort-sx-prop.md) | Sort the sx prop | 🔧  |

<!-- end auto-generated rules list -->
npm package: @saswatb/skywatch-sdk
Description: The TypeScript SDK for SkyWatch.
Author: Saswat Bhattacharya
Latest version: 0.1.3

# @saswatb/skywatch-sdk

The TypeScript SDK for SkyWatch.

## Installation

```bash
npm install @saswatb/skywatch-sdk
```

## Usage

The following example shows how to log a message to the SkyWatch API.
You can get the API key from your project's dashboard.

```typescript
import { sw } from "@saswatb/skywatch-sdk";

// omit if you have the SKYWATCH_API_KEY environment variable set
sw.init({
  apiKey: "your-api-key",
});

sw.log("Hello, world!");
```

## Community

Join the [Discord](https://discord.gg/wB9Xayz2A5) to chat with the community and the team.
npm package: @sat-utils/api
Description: The api lambda function for sat-api
Author: Alireza Jazayeri
Latest version: 0.3.0

## @sat-utils/api


### Unit Tests
```
$ yarn
$ yarn test
```

### About
[sat-api](https://github.com/sat-utils/sat-api) was created by [Development Seed](<http://developmentseed.org>) and is part of a collection of tools called [sat-utils](https://github.com/sat-utils).
npm package: @sat-utils/api-lib
Description: A library for creating a search API of public Satellites metadata using Elasticsearch
Author: Alireza Jazayeri
Latest version: 0.3.0

## @sat-utils/api-lib

### Unit Tests
```
$ yarn
$ yarn test
```

### Integration Tests
Navigate to the integration directory
```
$ cd ./tests/integration
```
Use the environment variable `DOCKER_NAME` to set your Docker host name.
Normally `localhost`.
```
$ export DOCKER_NAME=localhost
```
The AWS-SDK library also requires fake key fields to create a connection so set.
```
$ export AWS_ACCESS_KEY_ID=none
```
```
$ export AWS_SECRET_ACCESS_KEY=none
```
To run the tests
```
$ ./runIntegration.sh
```

### Environment variables

`AWS_REGION`
`AWS_ACCESS_KEY_ID`
`AWS_SECRET_ACCESS_KEY`
`ES_HOST`
`ES_BATCH_SIZE`
`STAC_ID`
`STAC_TITLE`
`STAC_DESCRIPTION`
`STAC_VERSION`
`STAC_DOCS_URL`
`SATAPI_URL`

### About
[sat-api](https://github.com/sat-utils/sat-api) was created by [Development Seed](<http://developmentseed.org>) and is part of a collection of tools called [sat-utils](https://github.com/sat-utils).
npm package: @sat-utils/ingest
Description: ingest lambda function of sat-api
Author: Matthew Hanson
Latest version: 0.3.0

## @sat-utils/ingest

For additional information on ingesting data into sat-api, see the README in the [sat-api-deployment repository](https://github.com/sat-utils/sat-api-deployment).


### Unit Tests
```
$ yarn
$ yarn test
```

### Environment variables

`CLUSTER_ARN`
`TASK_ARN`
`SECURITY_GROUPS`
`ECS_ROLE_ARN`
`ES_HOST`
`ES_BATCH_SIZE`

### About
[sat-api](https://github.com/sat-utils/sat-api) was created by [Development Seed](<http://developmentseed.org>) and is part of a collection of tools called [sat-utils](https://github.com/sat-utils).
npm package: @sat_npm/random-number-generator
Description:  random-number-generator
Author: sathish
Latest version: 2.0.0


@sat_npm/random-number-generator

[code]

# Create the project directory
mkdir random-number-generator 
# Change into the project directory
cd random-number-generator     
# Initialise an NPM package
npm init
Further reading
Adding a README to the project on NPM: https://docs.npmjs.com/about-package-readme-files

Versioning of NPM packages: https://docs.npmjs.com/about-semantic-versioning

Private NPM packages: https://docs.npmjs.com/creating-and-publishing-private-packages


npm publish --access=public

[/code]


Usage of NPM 

[code]

# Create a test directory
mkdir random-number-test 
  
# Change into the directory
cd random-number-test 
# Install the package   
# Create a test file
touch test.js

[/code]

In the test.js 

[code]

const randomNumberGenerator = require('@sat_npm/random-number-generator');
console.log(randomNumberGenerator(5, 10));

[/code]
npm package: @sat_npm/tiny
Description: Removes all spaces from a string
Author: sathish
Latest version: 4.0.0

[code]

$ npm install @bamblehorse/tiny


const tiny = require("@bamblehorse/tiny");

tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1

[/code]
npm package: @satachito/curve_fit
Description: Bezier/Conic curve fitting.
Author: Satoru Ogura
Latest version: 2.0.0

# curve_fit 

## Abstruct

An ECMAScript module which contains:

###	FitBezier:
Fits four or more specified points to a Bezier curve.

###	FitConic:
Fits three or more specified points to a Conic curve.

## Demo

https://satachito.github.io/BezierCPs/

https://contour-detector.web.app

## Install

```
npm install @satachito/curve_fit
```

## Usage

See: https://github.com/Satachito/BezierCPs/blob/main/index.html

## Description

See: https://qiita.com/Satachito/items/361cdfe4e9d11bec8244
npm package: @satachito/jp-color-picker
Description: Color picker WebComponent
Latest version: 1.1.0

# jp-color-picker 

## Abstruct

A color picker Web Component

## Module format

ECMAScript modules.

## Demo

https://satachito.github.io/jp-color-picker/


## Install

```
npm i @satachito/jp-color-picker
```

## Usage

See: https://github.com/Satachito/jp-color-picker/blob/main/index.html
npm package: @satachito/jp-formula
Description: Formula input WebComponents
Author: Satoru Ogura
Latest version: 1.1.1

# jp-formula

Have you ever wanted to let users enter mathematical formulas? This WebComponent is for that purpose.

Other than that, this WebComponent can let you input functions or call functions.

# Demo

https://satachito.github.io/jp-formula/

# Usage

```
<style>
jp-formula > input {
;	border:	1px solid red
}
</style>

FORMULA:<br>
<jp-formula id=FORMULA></jp-formula>
<input type=button value=Eval id=EVAL>
<span id=RESULT_FORMULA></span>
<br>
<br>

FUNCTION: @ means argument<br>
<input value=3 id=ARGUMENT style="width: 32px">
<jp-formula id=FUNCTION></jp-formula>
<input type=button value=Apply id=APPLY>
<span id=RESULT_FUNCTION></span>
<br>
<br>

BAD SYNTAX:<br>
<jp-formula id=FORMULA_X></jp-formula>
<input type=button value=Eval id=EVAL_X>
<span id=RESULT_FORMULA_X></span>
<br>
<br>

<script type=module>

import './node_module/@satachito/jp-formula/_.js'

FORMULA.value = '2 * ( 3 + 4 ) / 5'
EVAL.onclick = _ => {
	try {
		RESULT_FORMULA.textContent = FORMULA.Eval()
	} catch ( ex ) {
		alert( 'Not a valid formula\n' + ex.join( '\n' ) )
	}
}

FUNCTION.value = '@ * 2'
APPLY.onclick = _ => {
	try {
		RESULT_FUNCTION.textContent = FUNCTION.Apply( Number( ARGUMENT.value ) )
	} catch ( ex ) {
		alert( 'Not a valid formula\n' + ex.join( '\n' ) )
	}
}

FORMULA_X.value = 'abc'
EVAL_X.onclick = _ => {
	try {
		RESULT_FORMULA_X.textContent = FORMULA_X.Eval()
	} catch ( ex ) {
		alert( 'Not a valid formula\n' + ex.join( '\n' ) )
	}
}

</script>
```

# Syntax

Visit our awesome calculator site and see tutorial

https://slip.828.tokyo

https://slip.828.tokyo/Tutorial.html
npm package: @satachito/jp-menu
Description: Menu WebComponent
Author: Satoru Ogura
Latest version: 1.2.1

# Usage

## Sample

https://satachito.github.io/jp-menu/

https://recrateg.web.app/

## Read `CSS`

in `<head>`

```
<link rel="stylesheet" href=jp-menu-simple.css>
```

## Read `JS`

at the bottom of the `<body>`, before using it.

```
<script src=jp-menu.js></script>
```

## Menu Data Strucure

A menu is an array of menu element.

In menu, if a menu element is a type of Array, it has child menu, i.e. it is `node` element, otherwise it is `leaf` element.

#### Sample

* `[ 'A', 'B', 'C' ]`

This menu has three `leaf` elements, no `node` element.

* `[ [ 'A' [ 'AA', 'AB' ] ], 'B' ]`

This menu has one 'node' element `'A'` which has sub menu with two `leaf` elements `'AA'` and `'AB'`.

Also this menu has one `leaf` element `'B'`.


## Static

Supply menu data to `'json'` attribute as `JSON` string.

```index.html

<jp-menu
	json='[
		[	"Sun"
		,	[	"Mercury"
			,	[	"Venus"
				,	[ "2002 VE68" ]
				]
			,	[	"Earth"
				,	[ "Moon" ]
				]
			,	[	"Mars"
				,	[	"Phobos"
					,	"Deimos"
					]
				]
			,	[	"Jupiter"
				,	[	"Io"
					,	"Europa"
					,	"Ganymede"
					,	"Callisto"
					]
				]
			]
		]
	,	"Sirius"
	,	"Canopus"
	,	"α Centauri"
	,	"Arcturus"
	]'
>Initial TEXT</jp-menu><br>
```

## Dynamic

Supply menu data to constructor.

```
const data = [
	[	"Sun"
	,	[	"Mercury"
		,	[	"Venus"
			,	[ "2002 VE68" ]
			]
		,	[	"Earth"
			,	[ "Moon" ]
			]
		,	[	"Mars"
			,	[	"Phobos"
				,	"Deimos"
				]
			]
		,	[	"Jupiter"
			,	[	"Io"
				,	"Europa"
				,	"Ganymede"
				,	"Callisto"
				]
			]
		]
	]
,	"Sirius"
,	"Canopus"
,	"α Centauri"
,	"Arcturus"
]

const
menu2 = document.body.appendChild( new JPMenu( 'Menu2', data ) )
menu2.id = 'Menu2'
menu2.nodeCallback = menu2.leafCallback = ( text, path ) => menu2.firstChild.textContent = path + ':' + text

```

## Callbacks

JPMenu has two callbacks:

* leafCallback
* nodeCallback

which take two arguments:

* text - Selected Text.
* path - The path to descned data hierarchy.

Those defaults are setting selected menu to show up.

## Setting text

JPMenu's first child is text node. 

Set text content of this text node shows given string.
npm package: @satachito/jp-router
Description: A simple WebComponents router
Author: Satoru Ogura
Latest version: 1.0.4

# jp-router

A small and understandable WebComponets router which supports:

* Lazy loading
* Direct html
* Tag base creation

## Install

```
npm install @satachito/jp-router --save
```

## Demo

Our demo contains various patter including illegal patterns i.e. 404 and multiple routing.

see https://satachito.github.io/jp-router/

## Write HTML and JavaScript

### index.html
```
<!DOCTYPE html>
<html lang=zxx>
<meta charset="utf-8" />
<title>Router</title>

<script type=module>
	class
	Home extends HTMLElement {
		connectedCallback() {
			this.innerHTML = '<h1>Home</h1>'
		}
	}
	customElements.define( 'jp-home', Home )
</script>

<nav class=nav>
	<ul>
		<li route=/				>Home			</li>
		<li route=/direct		>Direct HTML	</li>
		<li route=/horses		>Horses			</li>
	</ul>
</nav>

<jp-route
	path=/
	title=Home
	data=jp-home
	spec=tag
></jp-route>

<jp-route
	path=/direct
	title="Direct html"
	data="<b>DIRECT HTML</b>"
	spec=html
></jp-route>

<jp-route
	path=/horses
	title=Horses
	data=/horses.js
	spec=source
></jp-route>

<jp-route
	path=/horse/:id
	title="Horse Details"
	data=/horse.js
	spec=source
></jp-route>

<script type=module src=./node_modules/@satachito/jp-router/jp-router.js></script>
<jp-router></jp-router>
```

### horseDB.js

```
export default [
	[ 'Narita Brian'	, 19910503 ]
,	[ 'Deep Impact'		, 20020325 ]
,	[ 'Orfevre'			, 20080514 ]
]
```

### horses.js
```
import horseDB from './horseDB.js'

export default class
Horses extends HTMLElement {
	connectedCallback() {
		this.innerHTML = `
			<h1>Horses</h1>
			<ul>
				${ horseDB.map( ( $, _ ) => `<li route=/horse/${ _ }>${ JSON.stringify( $ ) }</li>` ).join( '' ) }
			</ul>
		`
	}
}

customElements.define( 'jp-horses', Horses )
```

### horse.js

```
import horseDB from './horseDB.js'

export default class
Horse extends HTMLElement {
	connectedCallback() {
		this.innerHTML = `
			<h1>Horse Details</h1>
			<div>${ JSON.stringify( horseDB[ this.getAttribute( 'id' ) ] ) }</div>
		`
	}
}

customElements.define( 'jp-horse', Horse )
```

### Serve

```
npm install -g http-server
http-server
```
npm package: @satachito/jp-split
Description: Split view WebComponents
Author: Satoru Ogura
Latest version: 1.0.7

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/@satachito/jp-split)

# jp-split

A small and understandable split view witch supports both horizontal and vertical splittings.

## Install

```
npm install @satachito/jp-split --save
```

## Components

`jp-split-h` for horizontal splitting and `jp-split-v` for vertical splitting.

## Demo

See
https://satachito.github.io/jp-split/

## HTML & CSS

Include `jp-split.js` at the very bottom of the `<body>` tag.
Supply `grid-template` attribute like `grid-template="1fr 4px 1fr"`.
For meaning, refer https://developer.mozilla.org/ja/docs/Web/CSS/grid-template-columns


```
---------------- BarH
<style>
#BarH {
;	height			: 200px
}
#BarH > div {
;	background		: grey
;	cursor			: col-resize
}
</style>
<jp-split-h id=BarH grid-template="1fr 4px 1fr">
	<textarea></textarea>
	<div></div>
	<textarea></textarea>
</jp-split-h>

<script>
Array.from( document.getElementsByTagName( 'textarea' ) ).forEach(
	$ => $.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
)
</script>
<script src=node_modules/@satachito/jp-split/jp-split.js></script>
```
npm package: @satachito/jp-table
Description: Sortable table WebComponent
Author: Satoru Ogura
Latest version: 1.1.0

# jp-table

A small and understandable table witch supports sorting.
Supporting headless table.

## Demo

https://satachito.github.io/jp-table/

https://recrateg.web.app/All.html

## Sample

Change path to .js and .css files to point those right location.<br>
ex)<br>
If you installed jp-table by NPM, the .js file's path may be `@satachito/jp-table/jp-table.js`<br>

### Static HTML & CSS

```
<link rel="stylesheet" href=jp-table.css>

<jp-table
	json='{"head":["date","name","grade","winner"],"body":[[20181125,"Japan Cup","G1","Almond Eye"],[20181125,"Keihan Hai","G3","Danon Smash"],[20190120,"Tokai S.","G2","Inti"],[20190120,"American Jockey Club Cup","G2","Sciacchetra"]]}'
></jp-table>

<script src=jp-table.js></script>
```

### Dynamic creation & CSS

```
<link rel="stylesheet" href=jp-table.css>

<body>
<script src=jp-table.js></script>
<script>
const
data = {
	head: [ 'date', 'name', 'grade', 'winner' ]
,	body: [
		[ 20181125, "Japan Cup" 				, "G1", "Almond Eye"	]
	,	[ 20181125, "Keihan Hai"				, "G3", "Danon Smash"	]
	,	[ 20190120, "Tokai S."					, "G2", "Inti"			]
	,	[ 20190120, "American Jockey Club Cup"	, "G2", "Sciacchetra"	]
	]
}
document.body.appendChild( new JPTable( data ) )
</script>
</body>
```

### Attaching data after element creation

```
<link rel="stylesheet" href=jp-table.css>
<jp-table id=JT></jp-table>
<script src=jp-table.js></script>
<script>
JT.data(
	{	head: [ 'date', 'name', 'grade', 'winner' ]
	,	body: [
			[ 20181125, "Japan Cup" 				, "G1", "Almond Eye"	]
		,	[ 20181125, "Keihan Hai"				, "G3", "Danon Smash"	]
		,	[ 20190120, "Tokai S."					, "G2", "Inti"			]
		,	[ 20190120, "American Jockey Club Cup"	, "G2", "Sciacchetra"	]
		]
	}
)
</script>
```

## Headless

Supply body only

```
<link rel="stylesheet" href=jp-table.css>

<jp-table
	json='[[20181125,"Japan Cup","G1","Almond Eye"],[20181125,"Keihan Hai","G3","Danon Smash"],[20190120,"Tokai S.","G2","Inti"],[20190120,"American Jockey Club Cup","G2","Sciacchetra"]]'
></jp-table>

<script src=jp-table.js></script>
```
npm package: @satachito/replace-numeral
Description: Replace all numerals in the world into Arabic numerals.
Author: Satoru Ogura
Latest version: 1.0.2

# ReplaceNumeral

For the use case, visit our awesome calculator site, https://slip.828.tokyo/

Replace all numerals in the world into Arabic numerals.

# install

```
npm i @satachito/replace-numeral
```

# Demo

https://satachito.github.io/ReplaceNumeral/

# Usage

```
import ReplaceNumeral from './_.js'
console.log( ReplaceNumeral( '０１２３４５６７８９０１２３４５６７８９' ) )
01234567890123456789
console.log( ReplaceNumeral( '𐒠𐒡𐒢𐒣𐒤𐒥𐒦𐒧𐒨𐒩𐒠𐒡𐒢𐒣𐒤𐒥𐒦𐒧𐒨𐒩' ) )
01234567890123456789
```

# Accurate listings

https://util.unicode.org/UnicodeJsps/list-unicodeset.jsp?a=[:Numeric_Type=Decimal:]

```
000030: 0123456789
000660: ٠١٢٣٤٥٦٧٨٩
0006f0: ۰۱۲۳۴۵۶۷۸۹
0007c0: ߀߁߂߃߄߅߆߇߈߉
000966: ०१२३४५६७८९
0009e6: ০১২৩৪৫৬৭৮৯
000a66: ੦੧੨੩੪੫੬੭੮੯
000ae6: ૦૧૨૩૪૫૬૭૮૯
000b66: ୦୧୨୩୪୫୬୭୮୯
000be6: ௦௧௨௩௪௫௬௭௮௯
000c66: ౦౧౨౩౪౫౬౭౮౯
000ce6: ೦೧೨೩೪೫೬೭೮೯
000d66: ൦൧൨൩൪൫൬൭൮൯
000de6: ෦෧෨෩෪෫෬෭෮෯
000e50: ๐๑๒๓๔๕๖๗๘๙
000ed0: ໐໑໒໓໔໕໖໗໘໙
000f20: ༠༡༢༣༤༥༦༧༨༩
001040: ၀၁၂၃၄၅၆၇၈၉
001090: ႐႑႒႓႔႕႖႗႘႙
0017e0: ០១២៣៤៥៦៧៨៩
001810: ᠐᠑᠒᠓᠔᠕᠖᠗᠘᠙
001946: ᥆᥇᥈᥉᥊᥋᥌᥍᥎᥏
0019d0: ᧐᧑᧒᧓᧔᧕᧖᧗᧘᧙
001a80: ᪀᪁᪂᪃᪄᪅᪆᪇᪈᪉
001a90: ᪐᪑᪒᪓᪔᪕᪖᪗᪘᪙
001b50: ᭐᭑᭒᭓᭔᭕᭖᭗᭘᭙
001bb0: ᮰᮱᮲᮳᮴᮵᮶᮷᮸᮹
001c40: ᱀᱁᱂᱃᱄᱅᱆᱇᱈᱉
001c50: ᱐᱑᱒᱓᱔᱕᱖᱗᱘᱙
00a620: ꘠꘡꘢꘣꘤꘥꘦꘧꘨꘩
00a8d0: ꣐꣑꣒꣓꣔꣕꣖꣗꣘꣙
00a900: ꤀꤁꤂꤃꤄꤅꤆꤇꤈꤉
00a9d0: ꧐꧑꧒꧓꧔꧕꧖꧗꧘꧙
00a9f0: ꧰꧱꧲꧳꧴꧵꧶꧷꧸꧹
00aa50: ꩐꩑꩒꩓꩔꩕꩖꩗꩘꩙
00abf0: ꯰꯱꯲꯳꯴꯵꯶꯷꯸꯹
00ff10: ０１２３４５６７８９
0104a0: 𐒠𐒡𐒢𐒣𐒤𐒥𐒦𐒧𐒨𐒩
010d30: 𐴰𐴱𐴲𐴳𐴴𐴵𐴶𐴷𐴸𐴹
011066: 𑁦𑁧𑁨𑁩𑁪𑁫𑁬𑁭𑁮𑁯
0110f0: 𑃰𑃱𑃲𑃳𑃴𑃵𑃶𑃷𑃸𑃹
011136: 𑄶𑄷𑄸𑄹𑄺𑄻𑄼𑄽𑄾𑄿
0111d0: 𑇐𑇑𑇒𑇓𑇔𑇕𑇖𑇗𑇘𑇙
0112f0: 𑋰𑋱𑋲𑋳𑋴𑋵𑋶𑋷𑋸𑋹
011450: 𑑐𑑑𑑒𑑓𑑔𑑕𑑖𑑗𑑘𑑙
0114d0: 𑓐𑓑𑓒𑓓𑓔𑓕𑓖𑓗𑓘𑓙
011650: 𑙐𑙑𑙒𑙓𑙔𑙕𑙖𑙗𑙘𑙙
0116c0: 𑛀𑛁𑛂𑛃𑛄𑛅𑛆𑛇𑛈𑛉
011730: 𑜰𑜱𑜲𑜳𑜴𑜵𑜶𑜷𑜸𑜹
0118e0: 𑣠𑣡𑣢𑣣𑣤𑣥𑣦𑣧𑣨𑣩
011950: 𑥐𑥑𑥒𑥓𑥔𑥕𑥖𑥗𑥘𑥙
011c50: 𑱐𑱑𑱒𑱓𑱔𑱕𑱖𑱗𑱘𑱙
011d50: 𑵐𑵑𑵒𑵓𑵔𑵕𑵖𑵗𑵘𑵙
011da0: 𑶠𑶡𑶢𑶣𑶤𑶥𑶦𑶧𑶨𑶩
016a60: 𖩠𖩡𖩢𖩣𖩤𖩥𖩦𖩧𖩨𖩩
016ac0: 𖫀𖫁𖫂𖫃𖫄𖫅𖫆𖫇𖫈𖫉
016b50: 𖭐𖭑𖭒𖭓𖭔𖭕𖭖𖭗𖭘𖭙
01d7ce: 𝟎𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗
01d7d8: 𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡
01d7e2: 𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫
01d7ec: 𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵
01d7f6: 𝟶𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿
01e140: 𞅀𞅁𞅂𞅃𞅄𞅅𞅆𞅇𞅈𞅉
01e2f0: 𞋰𞋱𞋲𞋳𞋴𞋵𞋶𞋷𞋸𞋹
01e950: 𞥐𞥑𞥒𞥓𞥔𞥕𞥖𞥗𞥘𞥙
01fbf0: 🯰🯱🯲🯳🯴🯵🯶🯷🯸🯹
```
npm package: @satankebab/react-native-android-wake-screen
Description: Turn the Screen Display On
Author: Pranav
Latest version: 1.1.1

# react-native-android-wake-screen

Fork of https://github.com/witPranav/react-native-android-wake-screen that works with gradle 7.

## Getting started

`$ npm install @satankebab/react-native-android-wake-screen --save`

### Mostly automatic installation

`$ react-native link @satankebab/react-native-android-wake-screen`

## Usage
This module helps turn the screen display on from within a headless function.

Add the following inside the project manifest (android/app/src/main/AndroidManifest.xml):
```xml
<uses-permission android:name="android.permission.WAKE_LOCK" />   //Add this line
<application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:allowBackup="false"
      android:turnScreenOn="true"                          // Add this line
      android:theme="@style/AppTheme">
```

```javascript
import AndroidWakeScreen from '@satankebab/react-native-android-wake-screen';

//inside your headless function
const MyHeadlessFunction = async () => {
  AndroidWakeScreen.wakeScreen();
};
```