open-index/open-npm huggingface dataset:
npm package: @getnwa/van-js
Description: An API resource you can use for the Valorant game.
Author: nwa
Latest version: 1.0.2

# VANjs
An API resource you can use for the Valorant game.



### Static Content

Code writing that needs to be done for some static content in the game.

```js
const languages = require("./src/languages");
```

```js
const Tiers = require("./src/Tiers");
```

```js
const Map = require("./src/Map");
```
npm package: @getoccasion/mitragyna
Description: A library for managing ActiveResource.js as React components
Author: Nick Landgrebe, Pelle ten Cate & Kieran Klaassen
Latest version: 0.2.4

ActiveResource.js binding framework for React components

## Installation

```javascript
yarn add @getoccasion/mitragyna
```

You can also use the CDN address https://unpkg.com/@getoccasion/mitragyna to add it to your AMD loader or into your page:

```html
<script type="text/javascript" src="https://unpkg.com/@getoccasion/mitragyna"></script>
```

## Getting Started

1. Set a resource, and attach a child component to render with that subject

```jsx
<Resource component={Customer} reflection="customer" subject={customer} />
```

2. Have a field in the child component that responds to the subject from the parent Resource

```jsx
  <Field
    type="email"
    name="email"
    id="email"
    component={Input}
    invalidClassName="is-invalid"
    placeholder="jane.doe@example.com"
  />
  <ErrorsFor className="customer-email-errors" component={FormFeedback} field="email" />
```

3. You can nest Resources with setting a reflection

```jsx
<Resource component={Customer} reflection="customer" subject={customer} />
```

4. Bind some callback logic to the (root) resource

- afterError: PropTypes.func
- afterUpdate: PropTypes.func
- onInvalidSubmit: PropTypes.func
- onSubmit: PropTypes.func
- beforeSubmit: PropTypes.func

### If using nested resources

```jsx
function  useBoomTown() {
  return [streetRef, street, setStreet]
}

// App.jsx
fuction App() {
  const [streetRef, street, setStreet] = useBoomTown()

  return(
    <Resource subject={myOrder} afterUpdate={saveMyOrder}>
      <Resource component={Customer} subject={subject.customer()}>
        <Resource component={Address} subject={subject.address()}>
          <input type='text' name="street" ref={streetRef}>
          <input type='text' name="town" ref={townRef}>
          <input type='text' name="hood" ref={hoodRef}>
          <input type='text' name="region" ref={regionRef}>
        </Resource>
        <Resource compo subject={subject.address()} />


      </Resource>

      <Resource component={Attendees} subject={subject.attendees()} />

      </Resource>
    </Resource>
  )
}
```




### Binding and updating values from Fields

```jsx
const fulfillmentType = useRef()

// Render <Input> component for value that keeps subject up to date
<Field
  type="hidden"
  name="fulfillmentType"
  id="fulfillmentType"
  component={Input}
  ref={fulfillmentType}
/>

// Get value
fulfillmentType.current && fulfillmentType.current.state.value

// Update value
fulfillmentType.current && fulfillmentType.current.setValue('value here')
```
npm package: @getoccasion/sdk
Description: An SDK library that enables access to Occasion's application, providing a rich DSL for creating and managing bookings.
Author: Peak Labs LLC dba Occasion, Pelle ten Cate, Kieran Klaassen
Latest version: 0.2.16

# The Occasion Javascript SDK

The Occasion Javascript SDK enables you to sell bookings simply and securely through your web application, providing services to help you make use of many of the resources of Occasion. Such resources include merchants, products, venues, customers, orders, coupons, gift cards, payment methods, and calendars.

## Installation

```javascript
yarn add occasion-sdk
```

You can also use the CDN address https://unpkg.com/occasion-sdk to add it to your AMD loader or into your page:

```html
<script type='text/javascript' src='https://unpkg.com/occasion-sdk'></script>
```

## Initialization

Once you’ve added `occasion-sdk` to your application, initialize it with your public API token,
which can be found in your account settings on Occasion.

```javascript
let OccasionClient = new Occasion.Client(token: '[API_TOKEN]');
```

## Resources

* [Getting Started Guide](http://docs.getoccasion.com/sdk/)
  * Learn much of the DSL as this guide demonstrates how to create an order widget for any product on Occasion, so you can sell bookings for that product to customers.