open-index/open-npm huggingface dataset:
npm package: @jtomaszewski/babel-plugin-styled-components
Description: Improve the debugging experience and add server-side rendering support to styled-components
Latest version: 1.10.8-beta.0

# `babel-plugin-styled-components`

This plugin is a highly recommended supplement to the base styled-components library, offering some useful features:

- consistently hashed component classNames between environments (a must for server-side rendering)
- better debugging through automatic annotation of your styled components based on their context in the file system, etc.
- various types of minification for styles and the tagged template literals styled-components uses

## Quick start

Install the plugin first:

```
npm install --save-dev babel-plugin-styled-components
```

Then add it to your babel configuration:

```JSON
{
  "plugins": ["babel-plugin-styled-components"]
}
```

## Documentation

**The documentation for this plugin lives on [the styled-components website](https://www.styled-components.com/docs/tooling#babel-plugin)!**

- [Usage](https://www.styled-components.com/docs/tooling#usage)
- [Better debugging](https://www.styled-components.com/docs/tooling#better-debugging)
- [Minification](https://www.styled-components.com/docs/tooling#minification)

## License

Licensed under the MIT License, Copyright © 2016-present Vladimir Danchenkov and Maximilian Stoiber.

See [LICENSE.md](./LICENSE.md) for more information.
npm package: @jtomaszewski/eslint-config
Description: ESLint config to be used in some of our projects, that includes recommended rules of the following plugins:
Latest version: 4.0.1

# Introduction

ESLint config to be used in some of our projects, that includes recommended rules of the following plugins:

- eslint-config-airbnb / eslint-config-airbnb-base / eslint-config-airbnb-typescript
- eslint-plugin-react
- eslint-plugin-react-hooks
- eslint-plugin-jsx-a11y
- eslint-config-prettier
- eslint-import-resolver-typescript
- eslint-plugin-import
- eslint-plugin-jest
- eslint-plugin-promise
- eslint-plugin-unicorn

With some slight modifications to some of the defaults on our side.

# Usage

1. Setup eslint as you would normally do.

2. `yarn add -D @jtomaszewski/eslint-config`

3. Add all peer dependencies of `@jtomaszewski/eslint-config` as dev dependencies in your project. Use `npm info @jtomaszewski/eslint-config peerDependencies` to look them up.

4. Extend the config as in the following example:

   Node.js service:

   ```js
   // .eslintrc.js
   module.exports = {
     parser: "@typescript-eslint/parser",
     parserOptions: {
       project: ["./tsconfig.json"],
     },
     extends: [require.resolve("@jtomaszewski/eslint-config/configs/ts-node")],
   };
   ```

   Node.js service without TS:

   ```js
   // .eslintrc.js
   module.exports = {
     parser: "babel-eslint",
     extends: [require.resolve("@jtomaszewski/eslint-config/configs/node")],
   };
   ```

   Front-end React app:

   ```js
   // .eslintrc.js
   module.exports = {
     parser: "@typescript-eslint/parser",
     parserOptions: {
       project: ["./tsconfig.json"],
     },
     extends: [require.resolve("@jtomaszewski/eslint-config/configs/ts-react")],
   };
   ```

   Cypress:

   ```js
   // .eslintrc.js
   module.exports = {
     parser: "@typescript-eslint/parser",
     parserOptions: {
       project: ["./tsconfig.json"],
     },
     extends: [
       require.resolve("@jtomaszewski/eslint-config/configs/ts-cypress"),
     ],
   };
   ```

   Replace `ts-node` with other name of another [config file](https://github.com/jtomaszewski/eslint-config/tree/master/configs) if your environment differs.

## Adding it to existing codebase

If your codebase is large and introducing this config makes eslint yell with hundreds of errors, you might find following advices to be useful:

- keep a list of ignored "legacy" files by adding `overrides` to your `.eslintrc.js` that ignores some rules in some of your files (until they get improved). You can generate this automatically using [transform-eslint-errors-into-overrides](./bin/transform-eslint-errors-into-overrides.js) script.
- use https://github.com/IanVS/eslint-nibble

# Releasing

```sh
yarn release
```
npm package: @jtorm/cli
Description: jTorm CLI
Latest version: 1.0.0

# CLI

## Install

```js
// npm
npm install @jtorm/cli

// yarn
yarn add @jtorm/cli
```

## Setup
Register your cli command with parameters alias, pkg, action (function), params (param as key => description), description.
It is also possible to register events before and/or after the cli command with parameters when (before/after), alias, action (function).
npm package: @jtorm/components-ui
Description: jTorm Components UI
Latest version: 0.0.4

# jTorm HTML Prototype

## Install

```js
npm install jtorm-com/jtorm-html-prototype
```




jsdom bug: replace html not possible
jTorm.handle | Create new DOM
{"html":"<html lang=\"en\"><head></head><body></body></html>"}

jTorm.handle | Result new DOM
{"r":"<html><head></head><body></body></html>"}
npm package: @jtorm/db
Description: jTorm DB models for interacting with databases and managing schema.org schemas
Latest version: 1.0.2

# jTorm DB

DB models for interacting with databases and managing schema.org schemas.

## Install

```js
npm install @jtorm/db
```

## Config

.env config variable `DB_SCHEMA_NAME` that defines the db name of the schema.org schemas, the locale will be suffixed to it.
npm package: @jtorm/json-repository
Description: jTorm JSON Repository
Latest version: 1.0.0
Deprecated: This package has been migrated to @jtorm/nodejs-json-repository

# jTorm JSON Repository

## Install

```js
npm install @jtorm/json-repository
```

## Usage
```js
const
    { jsonRepositoryModel } = require('@jtorm/json-repository'),
    path = 'your_dir',
    file = 'example-file.json',
    data = {
        "test": 1
    }
;

(async () => {
    await jsonRepositoryModel.set(path, file, data);
    
    const result = await jsonRepositoryModel.get(path, file);
})();
```
npm package: @jtorm/logger
Description: jTorm Logger
Latest version: 1.0.0

# jTorm Logger

## Install

```js
npm install @jtorm/logger
```

## Config
.env variable `LOGGER` with options:
```js
LOGGER={"debug-level": "debug", "data-pattern": "YYYY-MM-DD-HH", "max-size": "20m", "max-files": "14d", "format": "${timestamp} ${level}: ${label} ${message}"}
```
npm package: @jtorm/nodejs-context
Description: jTorm Node.js Context
Latest version: 0.0.5

# Node.js Context

Node.js context example usage which, for example, can also be used as a base.

```js
const context = require('./src/context');

const jTormSessionModel = {
    get: function () {},
    set: function () {}
};

(async function() {
    await context(jTormSessionModel, null, {}, 1);
})();
```
npm package: @jtorm/schema-ui
Description: jTorm Schema UI
Latest version: 0.0.4

# jTorm Schema UI

## Install
```js
npm install @jtorm/schema-ui
```

The currently supported format types, relevant Accept values, and url suffixes are:

JSON-LD - application/ld+json - .jsonld
RDF/XML - application/rdf+xml - .rdf
Triples - text/plain - .nt
Turtle - application/x-turtle - .ttl
CSV - text/csv - .csv
Note: This is currently an experimental feature
https://schema.org/docs/developers.html

https://schema.org/version/5.0/schema.jsonld
https://schema.org/version/5.0/all-layers.jsonld


https://schema.org/docs/full.html
npm package: @jtorm/session-method
Description: jTorm Session Method
Latest version: 0.0.4
Deprecated: this package has been deprecated

# jTorm Session Method

## Install

```js
npm install @jtorm/session-method
```

## Config

| Option | Type  | Required | Description |
|--------|-------|----------|-------------|
| `k`    | `any` | `true`   | Key |
| `v`    | `any` | `false`  | Value it has to match |


## Example

Below an example when data component exists, use that, else use a default component (list.default).

```js
.mdc-drawer__content->append {
  ->if {
    data: component;
    ->ui {
      component: component;
    }
    ->else {
      ->ui {
        component: "list.default";
      }
    }
  }
}
```
npm package: @jtowers/sfdx-plugin
Description: Plugin for Salesforce CLI by John Towers
Author: John Towers
Latest version: 0.0.1

@jtowers/sfdx-plugin
====================

Plugin for Salesforce CLI by jtowers

[![Version](https://img.shields.io/npm/v/@jtowers/sfdx-plugin.svg)](https://npmjs.org/package/@jtowers/sfdx-plugin)

## Installation into the Salesforce CLI

Install the plugin into your Salesforce CLI using this command:

```sh-session
$ npm install -g @jtowers/sfdx-plugin
```

You can check a successful installation with `sfdx plugins`. Updates are applied when executing `sfdx plugins:update`.

## Commands

- [sfdx jtowers:metadata:backup](#sfdx-jtowersmetadatabackup)

## sfdx jtowers:metadata:backup
Retrieves some or all metadata from the target org and zips it in the provided location

```
USAGE
  $ sfdx jtowers:backup:metadata -r <directory> [-t <string>] [-e <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -e, --excludedmetadatatypes=excludedmetadatatypes                                 types of metadata to exclude from backup
  -r, --retrievetargetdir=retrievetargetdir                                         (required) directory to save backed up metadata to
  -t, --targetmetadatatypes=targetmetadatatypes                                     types of metadata to retrieve for backup
  -u, --targetusername=targetusername                                               username or alias for the target org; overrides default target org
  --apiversion=apiversion                                                           override the api version used for api requests made by this command
  --json                                                                            format output as json
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for this command invocation

EXAMPLE
  $ sfdx jtowers:backup:metadata --targetusername myOrg@example.com --retrievetargetdir backups 
  Retrieving backup from server... Backup retrieved

  $ sfdx jtowers:backup:metadata --targetusername myOrg@example.com --retrievetargetdir backups -t ApexClass ApexTrigger
  Retrieving backup from server... Backup retrieved
```
npm package: @jtq/event-source
Description: Simple event-handling module - works instantiably or as a mix-in.
Author: James Palmer
Latest version: 1.0.0

# Event-source

Simple event-handling module.

## Introduction

Can be used as a mixin:

    var EventSource = require('event-source');
    function MyEventSourceObject() {
      EventSource.call(this);
    }

or instantiated as its own object

    var EventSource = require('event-source');
    function MyOtherObject() {
      this.events = new EventSource();
    }

## API

### Set an event handler:

    MyEventSourceObject.on('testEvent', function() { ... });

or

    MyOtherObject.events.on('testEvent', function() { ... });

### Fire an event

    MyEventSourceObject.fire('testEvent', param1, param2... paramN);

(etc)

### Unset event handlers

#### Unset a single event handler

    var myHandler = function() { ... };
    ...
    MyEventSourceObject.off('testEvent', myHandler);

#### Unset all event handlers

    MyEventSourceObject.off('testEvent');
npm package: @jtq/object-walker
Description: Simple object walker with value callbacks
Author: James Palmer
Latest version: 1.0.0

# Object Walker

Simple object walker with a per-value callback.

## Basic example

Walk an object tree and spit out all simple values and their paths.

    var walker = require('object-walker');

    var obj = {
		a: 0,
		b: 0xFF0000,
		c: -10.1,
		d: {
			a: 10
		}
	};

    walker.walk(obj, function(val, path) {
      console.log(path, val);
    });

## More complex example: tweening system

Define an `original` object with properties and a `target` object with target values for some or all of the original object's properties.  Then define a "tweening" function that will calculate the values of the object at any arbitrary point along the spectrum from `original` to `target`.

    var walker = require('object-walker');

    var from = {
		top: 10,
		left: 25,
		scale: 1,
		rotation: 0
	};

	var to = {
		top: 100,
		left: 0,
		scale: 1.5,
		rotation: 90
	};

	// Given a "from" object, a "to" object and a "progress" parameter (0 -> 1), calculate the values of the "from" object's properties at that point
	function tween(from, to, progress) {

		var result = JSON.parse(JSON.stringify(from));	// Quick hacky object deep-clone

		walker.walk(from, function(val, path) {
			var diff = walker.get(to, path) - walker.get(from, path);
			var newval = walker.get(from, path) + (diff * progress);
			walker.set(result, path, newval);
		});

		return result;
	}

	console.log("start", from);
	for(var i=1; i<=10; i++) {
		console.log(i, tween(from, to, i/10));
	}
npm package: @jtreact/react-native-rodney-broadcast
Description: module config broadcast notification for android and NSNotification for IOS
Author: Michel dos Santos Kuguio
Latest version: 0.9.3

# react-native-rodney-broadcast

module config broadcast notification for android and NSNotification for IOS

## Installation

```sh
npm install react-native-rodney-broadcast
```
or
```sh
yarn add react-native-rodney-broadcast
```

## Manual Usage

```js
import React, { useEffect, useState } from 'react';
import { DeviceEventEmitter } from 'react-native';
import RodneyBroadcast from 'react-native-rodney-broadcast';

// ...
const [result, setResult] = useState()
const eventEmitter = new NativeEventEmitter(NativeModules.RodneyBroadcast);

RodneyBroadcast.addName(eventName);

const registerId = await RodneyBroadcast.register('NAME OF INTENTE FILTER','NAME OF PUT EXTRA','NAME OF SERVICE');

eventEmitter.addListener('NAME OF SERVICE', function (map) {
      setResult(map.data)
 });

// ...
await eventEmitter.unregister(registerId);
```

## Hooks Usage
```jsx

import React from 'react';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import { createServiceRodneyBroadcast } from 'react-native-rodney-broadcast';

const [
  RodneyBroadcastProvider,
  useRodneyBroadcast,
] = createServiceRodneyBroadcast(
  'app.dsic.barcodetray.BARCODE_BR_DECODING_DATA',
  ['EXTRA_BARCODE_DECODED_DATA'],
  'RODNEY'
);

function Home() {
  const { data, clear } = useRodneyBroadcast();
  return (
    <View style={styles.container}>
      <Text>{data?.EXTRA_BARCODE_DECODED_DATA || 'Aguardando Leitura'}</Text>
      <TouchableOpacity onPress={clear}>
        <Text>CLear Data</Text>
      </TouchableOpacity>
    </View>
  );
}

export default function App() {
  return (
    <RodneyBroadcastProvider>
      <Home />
    </RodneyBroadcastProvider>
  );
}
```
## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT