open-index/open-npm huggingface dataset:
npm package: @lab-code/is-odd
Description: Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.
Author: Nikita Galkin
Latest version: 1.0.1

# is-odd
As you can guess it's fun package that allows you to do next:
> Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.

# Install
```
npm install --save @lab-code/is-odd
```

# Usage
Works with strings and numbers.

```
const isOdd = require('@lab-code/is-odd');

console.log(isOdd('1')); // true
console.log(isOdd('3')); // true

console.log(isOdd(0)); // false
console.log(isOdd(2)); // false
```
npm package: @lab-org/lab-ts-utils
Description: A template for creating npm packages using TypeScript and VSCode
Author: Luke Bechtel
Latest version: 0.0.2

### Add NPM Token

Add your npm token to your GitHub repository secrets as `NPM_TOKEN`.

---

# my-package-name

[![npm package][npm-img]][npm-url]
[![Build Status][build-img]][build-url]
[![Downloads][downloads-img]][downloads-url]
[![Issues][issues-img]][issues-url]
[![Code Coverage][codecov-img]][codecov-url]
[![Commitizen Friendly][commitizen-img]][commitizen-url]
[![Semantic Release][semantic-release-img]][semantic-release-url]

> My awesome module

## Install

```bash
npm install my-package-name
```

## Usage

```ts
import { myPackage } from 'my-package-name';

myPackage('hello');
//=> 'hello from my package'
```

## API

### myPackage(input, options?)

#### input

Type: `string`

Lorem ipsum.

#### options

Type: `object`

##### postfix

Type: `string`
Default: `rainbows`

Lorem ipsum.

[build-img]:https://github.com/ryansonshine/typescript-npm-package-template/actions/workflows/release.yml/badge.svg
[build-url]:https://github.com/ryansonshine/typescript-npm-package-template/actions/workflows/release.yml
[downloads-img]:https://img.shields.io/npm/dt/typescript-npm-package-template
[downloads-url]:https://www.npmtrends.com/typescript-npm-package-template
[npm-img]:https://img.shields.io/npm/v/typescript-npm-package-template
[npm-url]:https://www.npmjs.com/package/typescript-npm-package-template
[issues-img]:https://img.shields.io/github/issues/ryansonshine/typescript-npm-package-template
[issues-url]:https://github.com/ryansonshine/typescript-npm-package-template/issues
[codecov-img]:https://codecov.io/gh/ryansonshine/typescript-npm-package-template/branch/main/graph/badge.svg
[codecov-url]:https://codecov.io/gh/ryansonshine/typescript-npm-package-template
[semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-url]:https://github.com/semantic-release/semantic-release
[commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]:http://commitizen.github.io/cz-cli/


## Features

- [Semantic Release](https://github.com/semantic-release/semantic-release)
- [Issue Templates](https://github.com/ryansonshine/typescript-npm-package-template/tree/main/.github/ISSUE_TEMPLATE)
- [GitHub Actions](https://github.com/ryansonshine/typescript-npm-package-template/tree/main/.github/workflows)
- [Codecov](https://about.codecov.io/)
- [VSCode Launch Configurations](https://github.com/ryansonshine/typescript-npm-package-template/blob/main/.vscode/launch.json)
- [TypeScript](https://www.typescriptlang.org/)
- [Husky](https://github.com/typicode/husky)
- [Lint Staged](https://github.com/okonet/lint-staged)
- [Commitizen](https://github.com/search?q=commitizen)
- [Jest](https://jestjs.io/)
- [ESLint](https://eslint.org/)
- [Prettier](https://prettier.io/)
npm package: @lab-org/luke-ts-lib
Description: A template for creating npm packages using TypeScript and VSCode
Author: Luke Bechtel
Latest version: 1.0.0

### Add NPM Token

Add your npm token to your GitHub repository secrets as `NPM_TOKEN`.

---

# my-package-name

[![npm package][npm-img]][npm-url]
[![Build Status][build-img]][build-url]
[![Downloads][downloads-img]][downloads-url]
[![Issues][issues-img]][issues-url]
[![Code Coverage][codecov-img]][codecov-url]
[![Commitizen Friendly][commitizen-img]][commitizen-url]
[![Semantic Release][semantic-release-img]][semantic-release-url]

> My awesome module

## Install

```bash
npm install my-package-name
```

## Usage

```ts
import { myPackage } from 'my-package-name';

myPackage('hello');
//=> 'hello from my package'
```

## API

### myPackage(input, options?)

#### input

Type: `string`

Lorem ipsum.

#### options

Type: `object`

##### postfix

Type: `string`
Default: `rainbows`

Lorem ipsum.

[build-img]:https://github.com/ryansonshine/typescript-npm-package-template/actions/workflows/release.yml/badge.svg
[build-url]:https://github.com/ryansonshine/typescript-npm-package-template/actions/workflows/release.yml
[downloads-img]:https://img.shields.io/npm/dt/typescript-npm-package-template
[downloads-url]:https://www.npmtrends.com/typescript-npm-package-template
[npm-img]:https://img.shields.io/npm/v/typescript-npm-package-template
[npm-url]:https://www.npmjs.com/package/typescript-npm-package-template
[issues-img]:https://img.shields.io/github/issues/ryansonshine/typescript-npm-package-template
[issues-url]:https://github.com/ryansonshine/typescript-npm-package-template/issues
[codecov-img]:https://codecov.io/gh/ryansonshine/typescript-npm-package-template/branch/main/graph/badge.svg
[codecov-url]:https://codecov.io/gh/ryansonshine/typescript-npm-package-template
[semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-url]:https://github.com/semantic-release/semantic-release
[commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]:http://commitizen.github.io/cz-cli/


## Features

- [Semantic Release](https://github.com/semantic-release/semantic-release)
- [Issue Templates](https://github.com/ryansonshine/typescript-npm-package-template/tree/main/.github/ISSUE_TEMPLATE)
- [GitHub Actions](https://github.com/ryansonshine/typescript-npm-package-template/tree/main/.github/workflows)
- [Codecov](https://about.codecov.io/)
- [VSCode Launch Configurations](https://github.com/ryansonshine/typescript-npm-package-template/blob/main/.vscode/launch.json)
- [TypeScript](https://www.typescriptlang.org/)
- [Husky](https://github.com/typicode/husky)
- [Lint Staged](https://github.com/okonet/lint-staged)
- [Commitizen](https://github.com/search?q=commitizen)
- [Jest](https://jestjs.io/)
- [ESLint](https://eslint.org/)
- [Prettier](https://prettier.io/)
npm package: @lab009/app-config
Description: Configuration for universal web application
Author: Oleg Orlov
Latest version: 2.0.0

# @lab009/app-config

> Configuration for universal web application

## Install

```
npm install --save @lab009/app-config
```

## Repository

https://github.com/lab009/app-config.git

## Usage

Loads configuration files from a `config` folder in your project root.

- `default` is always loaded if it exists
- If you specify `NODE_ENV=production` then both `production` and `default` are loaded, with `production` taking precedence.
- Any valid JS extension can be used for config - JS, json, etc.
  - To load another extension, register it before you require this module

```js
import config from '@lab009/app-config'
```

For working in browser add AppConfigPlugin in webpack config.

```js
import AppConfigPlugin from '@lab009/app-config/webpack'

var webpackConfig = {
  plugins: [
    new AppConfigPlugin(),
  ]
}
```
npm package: @lab009/babel-preset-lab009
Description: [DEPRECATED] Babel preset used by lab009
Author: Oleg Orlov
Latest version: 2.0.1

# @lab009/babel-preset-lab009

## [DEPRECATED] use @lab009/babel-preset-magma

This package includes the Babel preset used by lab009

## Usage

If you want to use this Babel preset in a project, you can install it with following steps.

First, [install Babel](https://babeljs.io/docs/setup/).

Then create a file named `.babelrc` with following contents in the root folder of your project:

  ```js
  {
    "presets": ["lab009"]
  }
  ```
## Repository

https://github.com/lab009/babel-preset-lab009.git
npm package: @lab009/babel-preset-magma
Description: Babel configuration for Magma projects.
Author: Oleg Orlov
Latest version: 3.4.3

# @lab009/babel-preset-magma

Babel configuration for Magma projects.

## Usage

If you want to use this Babel preset in a project, you can install it with following steps.

First, [install Babel](https://babeljs.io/docs/setup/).

Then create a file named `.babelrc` with following contents in the root folder of your project:

  ```js
  {
    "presets": ["@lab009/babel-preset-magma"]
  }
  ```
npm package: @lab009/eslint-config-lab009
Description: [DEPRECATED] Shared ESLint config by lab009
Author: Oleg Orlov
Latest version: 2.2.2

# @lab009/eslint-config-lab009

## [DEPRECATED] use @lab009/eslint-config-magma

Shared ESLint config by lab009.

## Usage

Our default export contains all of our ESLint rules, including EcmaScript 6+
and React. It requires `eslint`, `eslint-plugin-react`, `eslint-plugin-jsx-a11y`, and `eslint-plugin-import`.

1. Install the correct versions of each package, which are listed by the command:

  ```sh
  npm info "@lab009/eslint-config-lab009@latest" peerDependencies
  ```

  Use the [install-peerdeps](https://github.com/nathanhleung/install-peerdeps) cli tool.

  ```sh
  npm install -g install-peerdeps
  install-peerdeps --dev @lab009/eslint-config-lab009
  ```

  The cli will produce and run a command like:

  ```sh
  npm install --save-dev @lab009/eslint-config-lab009 eslint@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.#
  ```

2. add `"extends": "@lab009/eslint-config-lab009"` to your .eslintrc

## Repository

https://github.com/lab009/eslint-config-lab009.git
npm package: @lab009/eslint-config-magma
Description: The ESLint configuration for Magma applications.
Author: Oleg Orlov
Latest version: 3.3.1

# @lab009/eslint-config-magma

The ESLint configuration for Magma applications.

## Usage

Our default export contains all of our ESLint rules, including EcmaScript 6+
and React. It requires `eslint`, `eslint-plugin-react`, `eslint-plugin-jsx-a11y`, and `eslint-plugin-import`.

1. Install the correct versions of each package, which are listed by the command:

  ```sh
  npm info "@lab009/eslint-config-magma@latest" peerDependencies
  ```

  Use the [install-peerdeps](https://github.com/nathanhleung/install-peerdeps) cli tool.

  ```sh
  npm install -g install-peerdeps
  install-peerdeps --dev @lab009/eslint-config-magma
  ```

2. add `"extends": "@lab009/eslint-config-magma"` to your .eslintrc
npm package: @lab009/glob-loader
Description: webpack loader to load files at once with glob
Latest version: 1.0.0

# @lab009/glob-loader

Forked from [seanchas116/glob-loader](https://github.com/seanchas116/glob-loader), changed:
 - use fileName for object key

webpack loader to load files at once with glob

## Install

```
npm install --save-dev @lab009/glob-loader
```

## Repository

https://github.com/lab009/glob-loader.git

## Use

* Create a glob pattern file (example: `dir.pattern`)
* Write the pattern of the files that you want to require
* Require it with `glob-loader`

### `dir.pattern` file

Pattern is relative to the file directory.

```
./dir/**/*.js
```

### Require patterns

```js
var modules = require("glob-loader!./dir.pattern");
```

## TODO

* source map
npm package: @lab009/hunter
Description: Walk a React element tree, executing a provided function against each node.
Author: Oleg Orlov
Latest version: 1.0.0

# @lab009/hunter

Walk a React element tree, executing a provided visitor function against each element.

## TOCs

  - [Introduction](#introduction)
  - [Example](#example)
  - [FAQs](#faqs)

## Introduction

This is a extract of the implementation within the awesome [`react-apollo`](https://github.com/apollostack/react-apollo) project. I've come to find many use-cases for it in my own projects and want to avoid code duplication.

With this you could, for example, perform pre-rendering parses on your React element tree to do things like data prefetching. 🤛

# Example

In the below example we walk the tree and execute the `getValue` function on every element instance that has the function available.  We then push the value into a values array.

```jsx
import hunter from '@lab009/hunter'

class Foo extends React.Component {
  constructor(props) {
    super(props)
    this.getValue = this.getValue.bind(this)
  }

  getValue() {
    return this.props.value
  }

  render() {
    return <div>{this.props.children}</div>
  }
}

const app = (
  <div>
    <h1>Hello World!</h1>
    <Foo value={1} />
    <Foo value={2}>
      <Foo value={4}>
        <Foo value={5} />
      </Foo>
    </Foo>
    <Foo value={3} />
  </div>
)

const values = []

/**
 * Visitor to be executed on each element being walked.
 *
 * @param  element - The current element being walked.
 * @param  instance - If the current element is a Component or PureComponent
 *                    then this will hold the reference to the created
 *                    instance. For any other element type this will be null.
 * @param  context - The current "React Context". Any provided childContexTypes
 *                   will be passed down the tree.
 *
 * @return `undefined` if you want to continue walking down the current branch,
 *         or return `false` if you wish to stop the traversal down the
 *         current branch.  Stopping the traversal can be quite handy if
 *         you want to resolve a Promise for example.  You can wait for the
 *         Promise to resolve and then execute a function to continue
 *         traversal of the branch where you left off.
 */
function visitor(element, instance, context) {
  if (instance && typeof instance.getValue) {
    values.push(instance.getValue())
  }
};

hunter(app, visitor)

console.log(values) // [1, 2, 4, 5, 3];
```

## FAQs

> Let me know if you have any...
npm package: @lab100/eslint-config
Description: Eslint Rules
Author: Cactus Technologies LLC.
Latest version: 1.5.4

# @lab100/eslint-config

![hero](https://static.lab100.org/repo-hero.png)

> Eslint Rules

Extends `standard` with pedantic rules about `lodash/fp`

---

## Table of contents

- [Installation](#installation)
- [Usage](#usage)
- [Changelog](#changelog)
- [License](#license)

## Installation

```sh
npm install @lab100/eslint-config
```

## Usage

On your .eslintrc.js

```javascript
module.exports = {
  extends: '@lab100/eslint-config'
}
```

Protip: You can omit the `eslint-config` part

```javascript
module.exports = {
  extends: '@lab100'
}
```

## Changelog

Find the CHANGELOG [here](CHANGELOG.md), generated using Conventional Commits.

## License

[MIT](LICENSE) © [Cactus Technologies LLC.](https://www.cactus.is/)
npm package: @lab100/eslint-config-react
Description: Eslint Rules for React
Author: Cactus Technologies LLC.
Latest version: 1.5.4

# @lab100/eslint-config-react

![hero](https://static.lab100.org/repo-hero.png)

> Eslint Rules for React

Extends `standard` with pedantic rules about `lodash/fp`

---

## Table of contents

- [Installation](#installation)
- [Usage](#usage)
- [Changelog](#changelog)
- [License](#license)

## Installation

```sh
npm install @lab100/eslint-config-react
```

## Usage

On your .eslintrc.js

```javascript
module.exports = {
  extends: '@lab100/eslint-config-react'
}
```

## Changelog

Find the CHANGELOG [here](CHANGELOG.md), generated using Conventional Commits.

## License

[MIT](LICENSE) © [Cactus Technologies LLC.](https://www.cactus.is/)
npm package: @lab100/stylelint-config
Description: Stylelint rules
Author: Cactus Technologies LLC
Latest version: 1.5.4

# @lab100/stylelint-config

![hero](https://static.lab100.org/repo-hero.png)

> Stylelint rules

---

## Table of contents

- [Installation](#installation)
- [Usage](#usage)
- [Changelog](#changelog)
- [License](#license)

## Installation

```sh
npm install @lab100/stylelint-config
```

## Usage

On your .stylelintrc.js

```javascript
module.exports = {
  extends: '@lab100/stylelint-config'
}
```

## Changelog

Find the CHANGELOG [here](CHANGELOG.md), generated using Conventional Commits.

## License

[MIT](LICENSE) © [Cactus Technologies LLC](https://www.cactus.is/)
npm package: @lab100/webpack-config
Description: Webpack configuration helpers
Author: Cactus Technologies LLC
Latest version: 1.5.4

# @lab100/webpack-config

![hero](https://static.lab100.org/repo-hero.png)

> Webpack configuration helpers

---

## Table of contents

- [Installation](#installation)
- [Changelog](#changelog)
- [License](#license)

## Installation

```sh
npm install @lab100/webpack-config
```

## Changelog

Find the CHANGELOG [here](CHANGELOG.md), generated using Conventional Commits.

## License

[MIT](LICENSE) © [Cactus Technologies LLC](https://www.cactus.is)
npm package: @lab11/anchorgen
Description: Anchor generator from IDLs
Author: labeleven.dev
Latest version: 1.1.0

ANCHORGEN
===

[![Publish Status](https://github.com/labeleven-dev/anchorgen/actions/workflows/publish.yml/badge.svg)](https://github.com/labeleven-dev/anchorgen/actions/workflows/publish.yml) [![npm version](https://badge.fury.io/js/@lab11%2Fanchorgen.svg)](https://www.npmjs.com/package/@lab11/anchorgen) [![Known Vulnerabilities](https://snyk.io/test/github/labeleven-dev/anchorgen/badge.svg)](https://snyk.io/test/github/labeleven-dev/anchorgen) [![Code Style: Google](https://img.shields.io/badge/code%20style-google-blueviolet.svg)](https://github.com/google/gts)

> This is a work-in-progress. Use at your own risk.

Reverse engineers an Anchor program's interface from its IDL.

This could be useful when invoking CPIs on a closed-source Anchor program.

Try it
---

```
anchor init jupiter

anchor idl fetch --provider.cluster mainnet JUP2jxvXaqu7NQY1GmNF4m1vodw12LVXYxbFL2uJvfo | \
npx @lab11/anchorgen JUP2jxvXaqu7NQY1GmNF4m1vodw12LVXYxbFL2uJvfo > jupiter/programs/jupiter/src/lib.rs

anchor build
```

Now you can use reference it in your program's `Cargo.toml` as a depedency:

```toml
[dependencies]
jupiter = { path = "../../../jupiter/programs/jupiter", features = ["cpi", "no-entrypoint"] }
```

See `npx @lab11/anchorgen --help` for more info.

Features
---

Tested with Anchor 0.24.x.

- [x] Instrcutions
- [x] Accounts
- [ ] Accounts: Nested
- [x] Types: Primitives
- [x] Types: Struct
- [x] Types: Enum
- [x] Types: Option & COption
- [x] Types: Vector & Array
- [x] Errors
- [ ] Constants
- [ ] State
- [ ] Events
- [ ] Metadata
- [ ] Docs (waiting for <https://github.com/project-serum/anchor/pull/1561> to make it to a canonical release)

Contributing
---

Pull requests and GitHub Issues are welcome.
npm package: @lab1219/react-native-sdk
Description: ## Getting started
Author: textile.io
Latest version: 1.0.0

# react-native-sdk

[![Made by Textile](https://img.shields.io/badge/made%20by-Textile-informational.svg?style=popout-square)](https://textile.io)
[![Chat on Slack](https://img.shields.io/badge/slack-slack.textile.io-informational.svg?style=popout-square)](https://slack.textile.io)
[![GitHub license](https://img.shields.io/github/license/textileio/android-textile.svg?style=popout-square)](./LICENSE)
[![CircleCI branch](https://img.shields.io/circleci/project/github/textileio/react-native-sdk/master.svg?style=popout-square)](https://circleci.com/gh/textileio/react-native-sdk)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=popout-square)](https://github.com/RichardLitt/standard-readme)
![Platform](https://img.shields.io/badge/platform-typescript-lightgrey.svg?style=popout-square)
[![Version](https://img.shields.io/npm/v/@textile/react-native-sdk.svg?style=popout-square)](https://www.npmjs.com/package/@textile/react-native-sdk)

> Textile provides encrypted, recoverable, schema-based, and cross-application data storage built on IPFS and libp2p. We like to think of it as a decentralized data wallet with built-in protocols for sharing and recovery, or more simply, an open and programmable iCloud.

## Table of Contents

- [Install](#install)
- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)

## Install

Textile is available through [npm](https://www.npmjs.com/):

```
npm install @lab1219/react-native-sdk
```

## Usage

To learn about Textile usage, please head over to the [Textile documentation](https://docs.textile.io/) and be sure to read the [JavaScript getting started guide](https://docs.textile.io/develop/clients/javascript/).

See [the boilerplate repo](https://github.com/textileio/advanced-react-native-boilerplate) for example usage.

## Maintainers

[@JerryLX](https://github.com/JerryLX)
[@Riften](https://github.com/Riften)

## Contributing

PRs accepted.

Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

MIT © 2019 Textile