open-index/open-npm huggingface dataset:
npm package: @sangzn34/react-native-swipeout
Description: iOS-style swipeout buttons behind component
Author: Dan Cormier
Latest version: 2.3.9

# DEPRECATED
this is no longer supported, please consider using https://github.com/jemise111/react-native-swipe-list-view instead.

# react-native-swipeout
iOS-style swipeout buttons that appear from behind a component

![swipeout preview](http://i.imgur.com/oCQLNFC.gif)

## Installation
```
npm install --save react-native-swipeout
```

## Usage example

See example/index.ios.js for a more detailed example.
See the [Wiki](https://github.com/dancormier/react-native-swipeout/wiki) usage tips.
To use swipeout behind a iOS-style listitem, try [react-native-listitem](https://github.com/dancormier/react-native-listitem).

```js
import Swipeout from 'react-native-swipeout';

// Buttons
var swipeoutBtns = [
  {
    text: 'Button'
  }
]

// Swipeout component
<Swipeout right={swipeoutBtns}>
  <View>
    <Text>Swipe me left</Text>
  </View>
</Swipeout>

```

## Props

Prop            | Type   | Optional | Default   | Description
--------------- | ------ | -------- | --------- | -----------
autoClose       | bool   | Yes      | false     | auto close on button press
backgroundColor | string | Yes      | '#dbddde' |
close           | bool   | Yes      |           | close swipeout
disabled        | bool   | Yes      |  false    | whether to disable the swipeout  
left            | array  | Yes      | []        | swipeout buttons on left
onOpen          | func   | Yes      |           | (sectionID, rowId, direction: string) => void
onClose          | func   | Yes      |           | (sectionID, rowId, direction: string) => void
right           | array  | Yes      | []        | swipeout buttons on right
scroll          | func   | Yes      |           | prevent parent scroll
style           | style  | Yes      |           | style of the container
sensitivity     | number | Yes      | 50         | change the sensitivity of gesture
buttonWidth     | number | Yes      |            | each button width

##### Button props

Prop            | Type   | Optional | Default   | Description
--------------- | ------ | -------- | --------- | -----------
backgroundColor | string | Yes      | '#b6bec0' | background color
color           | string | Yes      | '#ffffff' | text color
component       | ReactNode | Yes      | null      | pass custom component to button
onPress         | func   | Yes      | null      | function executed onPress
text            | string | Yes      | 'Click Me'| text
type            | string | Yes      | 'default' | default, delete, primary, secondary
underlayColor   | string | Yes      | null      | button underlay color on press
disabled        | bool   | Yes      | false     | disable button

## To Do

[https://github.com/dancormier/react-native-swipeout/issues](https://github.com/dancormier/react-native-swipeout/issues)
npm package: @sanhuamao1/methodjs
Description: EMS
Latest version: 1.0.5

# 使用

EMS

```js
import { download } from '@sanhuamao1/methodjs';
download('xxx');
```

CJS

```js
const { formatTime } = require('@sanhuamao1/methodjs');
formatTime(new Date());
```

# 方法

## Browser 浏览器相关

-  普通下载：`download(url: string, fileName?:string)`
-  下载音频：`downloadMedia(url: string, fileName?:string)`
-  播放音频：`playAudio(url: string, onError?:(err:Error)=>void)`（只有当用户跟页面互动过，才会生效，否则会报错）

## Date 时间相关

-  解析时间：`parseTime(timestamp: number | string, options)`

   ```ts
   // 选项
   type TOptions = {
       type?: 'local' | 'utc' // 默认 local
   }

   // 调用
   parseTime(new Date().getTime(), {type:'local'})
   parseTime('2024-07-30 10:10:10')

   // 返回值
   {
       year:2024,
       month:7,
       day:30,
       hour:12,
       minute:20,
       second:20
   }
   ```

-  格式化时间：`formatTime(value: number | string, format = "YYYY-MM-DD hh:mm:ss")`

   ```ts
   // 调用
   formatTime(new Date().getTime());
   formatTime('2024-07-30 10:10:10', 'YYYY年MM月DD日 hh:mm:ss'); // '2024年07月30日 10:10:10'
   ```

-  格式化时间段：`getDuration(seconds: number | string, options)`

   ```ts
   // 选项
   type TOptions = {
      lang?: 'EN' | 'CN'; // 格式 默认CN
   };

   // 调用
   getDuration(3000); // 50分
   ```

-  输入的时间距离当前时间的描述：`getLatestDes(value: number | string, options)`

   ```ts
   // 选项
   type TOption = {
      lang?: 'EN' | 'CN';
      maxDiff?: number; // 当间隔超过 maxDiff 时，显示具体时间
      minDiff?: number; // 当间隔小于 minDiff 时，显示“刚刚/just now”
   };

   // 调用
   getLatestDes('2024-07-30 10:10:10'); // 4 minutes ago
   ```
## Tree 
- 根据id生成树：`getTree(list: Array<any>, options)`
    ```js
    // 选项
    type TOptions = {
        selfField?: string, // 标识自身的字段名称
        parentField?: string // 指向父节点的字段名称
    }

    // 调用
    getTree([
        { id:1, value:1, parentId: null}
        { id:2, value:2, parentId: 1}
    ])
    ```
npm package: @saniekasmara/use-random-string-generator
Description: A module that provide you with random string provided
Author: saniekasmara
Latest version: 1.1.1

# @saniekasmara/use-random-string-generator

> A module that provide you with random string provided

[![NPM](https://img.shields.io/npm/v/@saniekasmara/use-random-string-generator.svg)](https://www.npmjs.com/package/@saniekasmara/use-random-string-generator) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @saniekasmara/use-random-string-generator
```

## Usage

```jsx
import React from 'react'

import { UseRandomString } from '@saniekasmara/use-random-string-generator'
import '@saniekasmara/use-random-string-generator/dist/index.css'

const App = () => {
  const { text, isLoading } = UseRandomString()

  if (isLoading) {
    return (
      <div>
        <h1>Loading...</h1>
      </div>
    )
  }
  if (text) {
    return (
      <div>
        <h1>Text Generated:</h1>
        <p>{text}</p>
      </div>
    )
  }
  return null
}
```

## License

MIT © [saniekasmara](https://github.com/Poorlady)
npm package: @sanillajs/sanilla
Description: Very easy and simple single page application framework.
Author: sanilla
Latest version: 1.0.4

# Sanilla

Why do we have to study new grammar for make SPA?

This is very easy and simple framework for make single page application.

We don't need another grammer.

Sanilla is SPA + Vanilla(JS).

## Install
npm
```sh
npm install @sanillajs/sanilla
```
yarn
```sh
yarn add @sanillajs/sanilla
```

## How to use Sanilla

### Hello World

**src/index.js**
```js
import Sanilla from '@sanillajs/sanilla';
import app from './app.html';

Sanilla.mount('#root', app);
```

**src/app.html**
```html
<h1>Hello Sanilla!</h1>
<script>
	setTimeout(() => document.querySelector('h1').innerText = 'Awesome Sanilla!', 5000);
</script>
```

**public/index.html**
```html
<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Sanilla Application</title>
	</head>
	<body>
		<div id="root"></div>
	</body>
</html>
```

## [Sanilla-Router](https://github.com/sanillajs/sanilla-router)
```js
import Sanilla from '@sanillajs/sanilla';
import SanillaRouter from '@sanillajs/sanilla-router';

import app from './app.html';
import home from './views/home.html';
import about from './views/about.html';
import hello from './views/hello.html';

Sanilla.append('#root', app);
Sanilla.router = new SanillaRouter('#router', {
	'/': home,
	'/about': about,
	'/hello': hello,
});
```

## [Sanilla-Cli](https://github.com/sanillajs/sanilla-cli)
```sh
sanilla-cli init my-project
cd my-project
npm install
npm run dev
```
npm package: @sanillajs/sanilla-cli
Description: ## Install ```sh npm install -g @sanillajs/sanilla-cli ```
Author: sanilla
Latest version: 1.0.3

# Sanill-Cli

## Install
```sh
npm install -g @sanillajs/sanilla-cli
```

or

```sh
yarn global add @sanillajs/sanilla-cli
```

## Usage

Create project
```
sanilla-cli init my-project
cd my-project
npm install
npm run dev
```

Product build
```
npm run build
```
npm package: @sanillajs/sanilla-router
Description: HTML5 history api router for [Sanilla](https://github.com/sanillajs/sanilla)
Author: sanilla
Latest version: 1.0.2

# Sanilla Router

HTML5 history api router for [Sanilla](https://github.com/sanillajs/sanilla)

![enter image description here](https://raw.githubusercontent.com/sanillajs/sanilla-router/master/spa.gif)

## Install
npm
```sh
npm install -D @sanillajs/sanilla-router
```

yarn
```sh
yarn add -D @sanillajs/sanilla-router
```

## How to use

```js
import Sanilla from '@sanillajs/sanilla';
import SanillaRouter from '@sanillajs/sanilla-router';

import app from './app.html';
import home from './views/home.html';
import about from './views/about.html';
import hello from './views/hello.html';

Sanilla.append('#root', app);
Sanilla.router = new SanillaRouter('#router', {
	'/': home,
	'/about': about,
	'/hello': hello,
});
```
npm package: @saninn/n8n-nodes-email-check
Description: checks the email on manual request
Author: Saninn Salas Diaz
Latest version: 0.1.0

# n8n-nodes-read-email-once

This is an n8n community node. It lets you check emails vía IMAP on request in your n8n workflows.


[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.

[Installation](#installation)  
[Operations](#operations)  
[Credentials](#credentials)  <!-- delete if no auth needed -->  
[Compatibility](#compatibility)  
[Usage](#usage)  <!-- delete if not using this section -->  
[Resources](#resources)  
[Version history](#version-history)  <!-- delete if not using this section -->  

## Installation

Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.

## Operations

* Get all emails.
* Get just non-read emails.
* Get just read emails.

## Credentials

You will need to setup your Email IMAP credentials

## Compatibility

Tested with 0.197.0


## Resources

* [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
* _Link to app/service documentation._
npm package: @sanishchirayath/modern-package-npm
Description: An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.
Author: Snyk Labs
Latest version: 1.6.0

# modern-npm-package

[![npm (scoped)](https://img.shields.io/npm/v/%40sanishchirayath/modern-package-npm)](https://github.com/sanishchirayath1/modern-package-npm) [![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/%40sanishchirayath/modern-package-npm)](https://github.com/sanishchirayath1/modern-package-npm)

An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format (CJS). It can be used in Node.js and browser applications.

Read the [blog post](https://snyk.io/blog/best-practices-create-modern-npm-package/) for more information.

## Get Started

1. Run `npm install` in your terminal
1. Then run `npm run build`
1. Update the `package.json` file "name" field with your own package name. Example `@username/package-name`
1. Create an account with [npm](https://www.npmjs.com/signup) if you don't have one already. Also be sure to enable [two-factor authentication](https://docs.npmjs.com/configuring-two-factor-authentication)
1. Sign in to your npm account in your terminal with `npm login`
1. Run `npm publish --access=public` to publish your package

### Testing

1. Install developer dependencies using the following command in your terminal `npm i -D mocha @types/mocha chai @types/chai ts-node`
1. Create a new file `.mocharc.json` in the root directory with the following contents:
   ```json
   {
     "extension": ["ts"],
     "spec": "./**/*.spec.ts",
     "require": "ts-node/register"
   }
   ```
1. Create a `tests` folder
1. Create an `index.spec.ts` file in the `tests` folder
1. Write unit tests in the `index.spec.ts` file to test the code in `index.ts`
1. Add a `"test"` property in the `package.json` file and give it a value of `"mocha"`
1. Run `npm test` in your terminal from the root folder of the project
npm package: @sanishchirayath/simple-npm-package
Description: A simple npm package for demonstration purposes and use in a Node.js app.
Author: Sanish chirayath
Latest version: 0.0.2

<div align="center">

# Simple npm Package

A simple npm package for demonstration purposes and use in a Node.js app.

</div>

## Get Started

Follow these steps to publish your own npm package for your own project or using this project.

> This is using the CommonJS module format for use in Node.js apps. You can read more about CommonJS vs. ESM module formats in Node.js on the [LogRocket Blog](https://blog.logrocket.com/commonjs-vs-es-modules-node-js/)

1. [Create a GitHub Repository](https://github.com/new)
1. Clone the repo locally. Example `git clone https://github.com/snyk-labs/simple-npm-package.git`
1. Open your terminal and change directories to the folder of your cloned project. Example `cd simple-npm-package`
1. Run `npm init -y` to create a `package.json` file. Note: if you cloned this repository you won't need to do this step.
1. Update package.json name property with a scoped name. Example `@snyk-labs/simple-npm-package`. Be sure to use your username or organization name instead of mine.
1. Write code for the package (or just use the hello world example in `index.js`)
1. [Sign up with npm](https://www.npmjs.com/signup). Also for better security be sure to enable [two-factor authentication](https://docs.npmjs.com/configuring-two-factor-authentication) on your npm account.
1. Sign in with your npm account in your terminal using the command `npm login` and follow the on-screen instructions.
1. Run `npx npm-packlist` to see the contents that will be included in the published version of the package.
1. Run `npm publish --dry-run` to see what would be done when actually running the command.
1. Run `npm publish --access=public` to actually publish the package to npm. Note: --access=public is needed for scoped packages (`@snyk-labs/simple-npm-package`) as they're private by default. If it's not scoped and doesn't have the `private` field set to `true` in `package.json` it will be public as well.
npm package: @sanishchirayath/tiny
Description: Removes all spaces from a string
Latest version: 2.0.0

# @sanishchirayath/tiny

[![npm (scoped)](https://img.shields.io/npm/v/%40sanishchirayath/tiny)](https://github.com/sanishchirayath1/tiny)

[![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/%40sanishchirayath/tiny)](https://github.com/sanishchirayath1/tiny)

The tiniest package ever.

## Install

```
$ npm install @sanishchirayath/tiny
```

## Usage

```js
const tiny = require("@sanishchirayath/tiny");

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

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