open-index/open-npm huggingface dataset:
npm package: @simonja/moment-date-range
Description: Utility to create a moment date range iterator
Author: Simon Jang
Latest version: 0.1.2

# moment-date-range [![Build Status](https://travis-ci.org/SimonJang/moment-date-range.svg?branch=master)](https://travis-ci.org/SimonJang/moment-date-range)

> Creates an generator to lazily loop over a date range using [moment](https://www.npmjs.com/package/moment).

## Requirements

- Node >= 8
- [moment](https://www.npmjs.com/package/moment) (**Peer dependency**)

**If you use Typescript, Typescript 3.6+ is required** since this lib uses the global generic Generator type.

## Install

```bash
$ npm install @simonja/moment-date-range --save
```

## Usage

### With only `start` passed

```js
import {range} from '@simonja/moment-date-range';

const generator = range(moment('2020-01-21'));

for (const day of generator) {
    console.log(day.format('YYYY-MM-DD')) // 2020-01-21 -> Infinity
}
```

### With `start` and `end` passed using the default configuration options passed

```js
import {range} from '@simonja/moment-date-range';

const generator = range(moment('2020-01-21'), moment('2020-01-31'));

for (const day of generator) {
    console.log(day.format('YYYY-MM-DD')) // 2020-01-21 -> 2020-01-31
}
```

### With a `start`, `end` and configuration options

```js
import {range} from '@simonja/moment-date-range';

const generator = range(moment('2020-01-01'), moment('2020-01-05'), {step: 2, unit: 'd'});

for (const day of generator) {
    console.log(day.format('YYYY-MM-DD')) // 2020-01-01 -> 2020-01-03 -> 2020-01-05
}
```

### Without lazy computation

```js
import {range} from '@simonja/moment-date-range';

const generator = range(moment('2020-01-01'), moment('2020-01-10'));

const dates = Array
    .from(generator)
    .map(item => item.format('YYYY-MM-DD'));

console.log(dates)

// ['2020-01-01',
// '2020-01-02',
// '2020-01-03',
// '2020-01-04',
// '2020-01-05',
// '2020-01-06',
// '2020-01-07',
// '2020-01-08',
// '2020-01-09',
// '2020-01-10']
```

### With `start` and `end` with a negative `step` configuration

```js
import {range} from '@simonja/moment-date-range';

const generator = range(moment('2020-01-31'), moment('2020-01-29'), {step: -1});

for (const day of generator) {
    console.log(day.format('YYYY-MM-DD')) // 2020-01-31 -> 2020-01-30 -> 2020-01-29
}
```

### With `start` and `end` with a defined `unit`

```js
import {range} from '@simonja/moment-date-range';

const generator = range(moment('2020-01-01'), moment('2020-01-18'), {unit: 'w'});

for (const day of generator) {
    console.log(day.format('YYYY-MM-DD')) // 2020-01-01 -> 2020-01-08 -> 2020-01-15
}
```

## API

### range(start, [end], [options]) -> Generator<Moment>

#### start

Type: `moment` object

Start of the date range

#### end

Type: `moment` object

End of the date range

#### options

Configuration options

##### options.step

Number of units between each iteration. Default `1`

##### options.unit

Unit used during iteration for comparison and cycling. Default `d`

#### Generator<Moment>

Result of the `range` function. Returns a generator that lazily creates `moment` objects.
npm package: @simonjayhawkins/shiny-robot
Description: Amazon Marketplace Web Services API client and marshaller
Author: Simon Hawkins
Latest version: 1.0.0-alpha.4

# shiny-robot

[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

## Configuration

create mwsconfig.json in your home directory
```
{
  "merchantId": "<Your Merchant Id>",
  "accessKeyId": "<Your AWS Access Key ID>",
  "secretAccessKey": "<Your AWS Secret Key>",
  "endpoint": "<Your Marketplace Endpoint>",
  "marketplaceId": "<Your Default Marketplace Id>",
  "dataService": {
    "default": "localFileSystem",
    "services": {
      "localFileSystem": {
        "path": "mws-requests",
        "format": "json"
      },
      "s3": {
        "bucketName": "<myBucket>",
        "bucketRegion": "<myRegion>",
        "objectPrefix": "mws-requests",
        "objectStorageClass": "STANDARD | REDUCED_REDUNDANCY | STANDARD_IA"
      }
    }
  }
}
```
If using AWS create a credentials file at ~/.aws/credentials on Mac/Linux or C:\Users\USERNAME\\.aws\credentials on Windows
```
[default]

aws_access_key_id = your_access_key

aws_secret_access_key = your_secret_key
```
npm package: @simonjayhawkins/ubiquitous-winner
Description: A command-line tool to fetch ASIN item attributes using Amazon Marketplace Web Services API
Author: Simon Hawkins
Latest version: 1.0.0-alpha.4

# ubiquitous-winner

[![npm version](https://badge.fury.io/js/%40simonjayhawkins%2Fubiquitous-winner.svg)](https://badge.fury.io/js/%40simonjayhawkins%2Fubiquitous-winner)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

## Installation

install globally using npm so that it may be run from the command line.
```
npm install -g @simonjayhawkins/ubiquitous-winner
```

## Configuration

create mwsconfig.json in your home directory for Amazon Marketplace credentials 
```
{
  "merchantId": "<Your Merchant Id>",
  "accessKeyId": "<Your AWS Access Key ID>",
  "secretAccessKey": "<Your AWS Secret Key>",
  "endpoint": "<Your Marketplace Endpoint>",
  "marketplaceId": "<Your Default Marketplace Id>",
  "dataService": {
    "default": "localFileSystem",
    "services": {
      "localFileSystem": {
        "path": "mws-requests",
        "format": "json"
      },
      "s3": {
        "bucketName": "<myBucket>",
        "bucketRegion": "<myRegion>",
        "objectPrefix": "mws-requests",
        "objectStorageClass": "STANDARD | REDUCED_REDUNDANCY | STANDARD_IA"
      }
    }
  }
}
```

create config.json in the working directory

```
{
  "GetMatchingProductForId": {
    "dataService": {
      "default": "localFileSystem",
      "services": [
        {
          "name": "localFileSystem",
          "module": "data-service-local-fs",
          "eventSourceFilePrefix": "item-attributes/item-attributes",
          "eventSourceFileExt": "log",
          "snapshotFilePrefix": "item-attributes.snapshot",
          "snapshotFileExt": "txt"
        }
      ]
    }
  }
}
```

If using AWS create a credentials file at ~/.aws/credentials on Mac/Linux or C:\Users\USERNAME\\.aws\credentials on Windows
```
[default]

aws_access_key_id = your_access_key

aws_secret_access_key = your_secret_key
```

## Usage

```
  Usage: getproductdata [options] [file]

  A command-line tool to fetch ASIN item attributes using Amazon Marketplace Web Services API

  Options:

    -h, --help                    output usage information
    -V, --version                 output the version number
    -v, --verbose                 additional output
    -a, --all                     process all ASIN in <file>
    -c, --config <path>           set dataservice config path. defaults to config.json
    -m, --mws-credentials <path>  set MWS credentials path. defaults to /home/user/mwsconfig.json
```
npm package: @simonjayhawkins/urban-chainsaw
Description: tab-seperated-values composer and parser
Author: Simon Hawkins
Latest version: 1.0.0-alpha.3

# urban-chainsaw

[![npm version](https://badge.fury.io/js/%40simonjayhawkins%2Furban-chainsaw.svg)](https://badge.fury.io/js/%40simonjayhawkins%2Furban-chainsaw)
npm package: @simonkberg/eslint-config
Description: A shareable eslint config for my JavaScript projects
Author: Simon Kjellberg
Latest version: 25.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @simonkberg/eslint-config

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]

A shareable eslint config for my JavaScript projects.

## Install:

```
yarn add --dev @simonkberg/eslint-config
```

### Base config

#### Extends:

- [eslint-config-standard]
- [eslint-config-prettier]
- [eslint-config-prettier/standard][eslint-config-prettier]

#### Usage:

```json
{
  "eslintConfig": {
    "extends": "@simonkberg/eslint-config"
  }
}
```

### Flow type config

#### Extends:

- [eslint-plugin-flowtype/recommended][eslint-plugin-flowtype]
- [eslint-config-prettier/flowtype][eslint-config-prettier]

#### Usage:

```json
{
  "eslintConfig": {
    "extends": [
      "@simonkberg/eslint-config",
      "@simonkberg/eslint-config/flowtype"
    ]
  }
}
```

### React config

#### Extends:

- [eslint-config-standard-react]
- [eslint-config-prettier/react][eslint-config-prettier]

#### Usage:

```json
{
  "eslintConfig": {
    "extends": ["@simonkberg/eslint-config", "@simonkberg/eslint-config/react"]
  }
}
```

### TypeScript config

#### Extends:

- [plugin:@typescript-eslint/recommended][@typescript-eslint/eslint-plugin]
- [plugin:@typescript-eslint/eslint-recommended][@typescript-eslint/eslint-plugin]
- [eslint-config-prettier/@typescript-eslint][eslint-config-prettier]

#### Usage:

```json
{
  "eslintConfig": {
    "extends": [
      "@simonkberg/eslint-config",
      "@simonkberg/eslint-config/typescript"
    ]
  }
}
```

[build-badge]: https://img.shields.io/travis/simonkberg/eslint-config/master.svg?style=flat-square
[build]: https://travis-ci.org/simonkberg/eslint-config
[npm-badge]: https://img.shields.io/npm/v/@simonkberg/eslint-config.svg?style=flat-square
[npm]: https://www.npmjs.org/package/@simonkberg/eslint-config
[eslint-config-standard]: https://github.com/standard/eslint-config-standard
[eslint-config-standard-react]: https://github.com/standard/eslint-config-standard-react
[eslint-config-prettier]: https://github.com/prettier/eslint-config-prettier
[eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype
[@typescript-eslint/eslint-plugin]: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
npm package: @simonkberg/eslint-config-react
Description: A shareable eslint config for my React projects
Author: Simon Kjellberg
Latest version: 11.0.0
Deprecated: This preset is deprecated and instead included as a separate export of @simonkberg/eslint-config. See migration instructions here: https://github.com/simonkberg/eslint-config-react

# @simonkberg/eslint-config-react

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]

# This package has been deprecated.

An equivalent preset is available as a separate export of [@simonkberg/eslint-config].

## Migration:

Remove `@simonkberg/eslint-config-react` and install `@simonkberg/eslint-config`:

```
yarn remove @simonkberg/eslint-config-react
yarn add --dev @simonkberg/eslint-config
```

Update `package.json` to contain:

```json
{
  "eslintConfig": {
    "extends": ["@simonkberg/eslint-config", "@simonkberg/eslint-config/react"]
  }
}
```

---

A shareable eslint config for my React projects.

## Install:

```
yarn add --dev @simonkberg/eslint-config-react
```

## Usage:

Add to `package.json`:

```json
{
  "eslintConfig": {
    "extends": "@simonkberg/eslint-config-react"
  }
}
```

## Config:

#### Extends:

* [@simonkberg/eslint-config]
* [@simonkberg/eslint-config/react][@simonkberg/eslint-config]

[build-badge]: https://img.shields.io/travis/simonkberg/eslint-config-react/master.svg?style=flat-square
[build]: https://travis-ci.org/simonkberg/eslint-config-react
[npm-badge]: https://img.shields.io/npm/v/@simonkberg/eslint-config-react.svg?style=flat-square
[npm]: https://www.npmjs.org/package/@simonkberg/eslint-config-react
[@simonkberg/eslint-config]: https://www.npmjs.com/package/@simonkberg/eslint-config
npm package: @simonklee/yoga
Description: A fast FFI wrapper for Facebook's Yoga layout engine for Bun, providing a yoga-layout compatible API
Author: remorses
Latest version: 0.2.30

# Yoga bindings

Fast Bun FFI bindings for Facebook's [Yoga](https://yogalayout.dev/) layout
engine, providing a `yoga-layout` compatible API built on Zig.

## Supported Platforms

Pre-built binaries are included in the npm package for:

| Platform | Architecture          | Binary          |
| -------- | --------------------- | --------------- |
| macOS    | ARM64 (Apple Silicon) | `libyoga.dylib` |
| macOS    | x64 (Intel)           | `libyoga.dylib` |
| Linux    | x64                   | `libyoga.so`    |
| Linux    | ARM64                 | `libyoga.so`    |
| Windows  | x64                   | `yoga.dll`      |

The correct binary is automatically loaded at runtime based on your platform.

## Installation

```bash
bun add @simonklee/yoga
```

## Usage

```typescript
import Yoga, { Node, Config, Edge, FlexDirection } from "@simonklee/yoga";

const config = Config.create();
const root = Node.create(config);

root.setFlexDirection(FlexDirection.Column);
root.setWidth(100);
root.setHeight(100);

const child = Node.create(config);
child.setFlexGrow(1);
root.insertChild(child, 0);

root.calculateLayout(100, 100);
console.log(root.getComputedLayout());
// { left: 0, top: 0, right: 0, bottom: 0, width: 100, height: 100 }

root.freeRecursive();
config.free();
```

## API

The API mirrors [yoga-layout](https://www.npmjs.com/package/yoga-layout). All
enums, constants, and methods are compatible.

## Building from source

Requirements: Bun and Zig 0.15.2+.

```bash
# Build the native library (debug)
zig build

# Build native library and dist placeholders (debug)
bun run build:native:dev

# Build the native library (release)
zig build -Doptimize=ReleaseFast

# Build native library and dist placeholders (release, for bun --compile)
bun run build:native

# Build TypeScript to dist/
bun run build:ts
# or
bun run build

# Tests
zig build test
bun run build:native:dev # Prepare dist placeholders for bun test
bun test
```

## Benchmarks

```bash
bun run bench
```

## Development notes

- `src/yoga_ffi.zig` exposes Yoga's C API via Zig `export fn`.
- `src/index.ts` uses `bun:ffi` and prefers a local `zig-out` library when present,
  falling back to the platform-specific binary in `dist/`.

## License

MIT
npm package: @simonlc/gulp-ssi
Description: Server Side Includes parser plugin for gulp
Author: Filip Mares
Latest version: 1.0.0

# gulp-ssi
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]

> Server Side Includes parser plugin for [gulp](https://github.com/wearefractal/gulp)

Works with both include types

```html
<!--#include file="includes/navigation.html" -->
```

```html
<!--#include virtual="../templates/navigation.html" -->
```

## Usage

First, install `gulp-ssi` as a development dependency:

```shell
npm install --save-dev gulp-ssi
```

Then, add it to your `gulpfile.js`:

```javascript
var ssi = require("gulp-ssi");

gulp.src("./src/*.ext")
	.pipe(ssi({
		root: '/my-pages'
	}))
	.pipe(gulp.dest("./dist"));
```

## Options

### root (optional)
Type: `String`  
Default: File directory

Set the location where the linked files are hosted.

## License

[MIT License](http://en.wikipedia.org/wiki/MIT_License)

[npm-url]: https://npmjs.org/package/gulp-ssi
[npm-image]: https://badge.fury.io/js/gulp-ssi.png

[travis-url]: http://travis-ci.org/etylsarin/gulp-ssi
[travis-image]: https://secure.travis-ci.org/etylsarin/gulp-ssi.png?branch=master