open-index/open-npm huggingface dataset:
npm package: @nashanunais/npm-package
Description: ## Description
Author: nashanunais
Latest version: 1.1.6

# @nashanunais/npm-package

## Description

A utility package for generating mock organiser data with customizable properties.

## Installation

To install this package, use npm or yarn:

```bash
npm install @nashanunais/npm-package
```

or

```bash
yarn add @nashanunais/npm-package
```

## Usage

### Importing

```typescript
import generateMockOrganiser from "@nashanunais/npm-package";
```

### Generating Default Data

```typescript
const defaultOrganiser = generateMockOrganiser();
console.log(defaultOrganiser);
```

### Customizing Data

```typescript
const customOrganiser = generateMockOrganiser({
  email: "custom@example.com",
  city: "Custom City",
});
console.log(customOrganiser);
```

### Parameters

- **`overrides`** (optional): An object to override any subset of `Organiser` properties.
npm package: @nashiko/gulp-js-parent
Description: Rebuild only changed js/ts files and all it's dependencies
Author: nashiko
Latest version: 1.0.1

# gulp-js-parent

Useful when working on a larger project: JavaScript can be (re-)built incrementally on a per-need basis.



## Install

```bash
# Using npm
npm install @nashiko/gulp-js-parent --save

# Using yarn
yarn add @nashiko/gulp-js-parent
```



## Usage

You can use `gulp-js-parent` with `gulp-cached` to only process the files that have changed but also recompile files that import the one that changed.

```js
'use strict';
var gulp = require('gulp');
var jsParent = require('@nashiko/gulp-js-parent');
var cached = require('gulp-cached');
var gulpif = require('gulp-if');
var filter = require('gulp-filter');

gulp.task('js', function() {
  return gulp.src('src/js/**/*.js')

    //filter out unchanged js files, only works when watching
    .pipe(gulpif(global.isWatching, cached('js')))

    //find files that depend on the files that have changed
    .pipe(jsParent({dir: 'src/js/'}))

    //filter out internal imports (folders and files starting with "_" )
    .pipe(filter(function (file) {
      return !/\/_/.test(file.path) || !/^_/.test(file.relative);
    }))
    
    //...
});
gulp.task('setWatch', function() {
    global.isWatching = true;
});
gulp.task('watch', ['setWatch', 'js'], function() {
    //your watch functions...
});
```


## Contributing :tada:
```bash
# Install dependencies
yarn

# Run tests
yarn test
```



## License

MIT
npm package: @nashiko/vite-plugin-nunjucks-static
Description: Vite plugin to serve multiple Nunjucks as HTML with middleware and build to static HTML.
Author: nashiko
Latest version: 0.0.1

**English** | [日本語](README.ja_JP.md)

This is a Vite plugin that treats Nunjucks as static HTML. Since I am not fully familiar with Vite detailed processing, there may be some uncertain parts.

Created with reference to https://github.com/macropygia/static-site-stack/tree/main/packages/vite-plugin-pug-static. Thank you.

# Install
```
npm install @nashiko/vite-plugin-nunjucks-static
```

# Usage

```javascript
// vite.config.js
import { defineConfig } from 'vite'
import vitePluginNunjucksStatic from '@nashiko/vite-plugin-nunjucks-static'

const nunjucksOptions = {
  manageEnv(env, paths) {
    env.addFilter('hello', (str) => {
      return `Hello ${str}`
    })
  },
  renderOptions: {
    context(paths) {
      return {
        testVal: 'VAL',
        testFn: (str) => {
          return str;
        },
      }
    }
  }
}

export default defineConfig({
  root: 'src',
  build: {
    rollupOptions: {
      input: {
        home: 'src/index.njk'
      }
    }
  },
  plugins: [
    vitePluginNunjucksStatic ({
      buildOptions: nunjucksOptions,
      serveOptions: nunjucksOptions,
      ignorePattern: ['/ignore/**'],
      reload: true
    })
  ]
})
```

# Options
- `buildOptions` : `object` Options for build.
  - `envOptions` : `object` Options for [Nunjucks Environment class](https://mozilla.github.io/nunjucks/api.html#environment).
  - `manageEnv(env, paths)` : `function` **env** is an Environment instance, so you can implement addFilter and other methods.
  - `renderOptions` : `object`
      - `context(paths)` : `function` Return variables and functions in an object to call from Nunjucks templates.
    - `callback(result, paths, err)` : `function` Set this if you want to add processing to the rendering result in **result**.
- `serveOptions` : `object` Options for dev server. Details of the options are the same as buildOptions.
- `ignorePattern` : `string | string[]` Patterns to exclude from conversion on the dev server. Specify as root-relative paths (starting with /)
- `reload` : `bool(true)` Whether to perform a full reload on the dev server.
npm package: @nashin1992/eslint-config
Description: Nitzan Nashi Private Eslint Configuration
Author: Nitzan Nashi
Latest version: 1.1.0

# Nitzan Nashi ESLint Configuration

### About
My Private eslint Configuration with my favorite rules.

Feel free to use :)

## Install

```
npm i @nashin1992/eslint-config --save-dev
```

## Configuration
in your .eslintrc file add:
```
{
    "extends": ["@nashin1992"]
}
```