open-index/open-npm huggingface dataset:
npm package: @nanw/nwlog
Description: New-wheel logger for NodeJs, just do it
Author: nanw1103
Latest version: 1.0.3

# nwlog
A new-wheel logger for NodeJs. Simple do its task

* Short logging api: as it should be
* With log written to rotated file
* Decorate console ondemand, with colors
* Log file/module name, support custom label. (for cluster mode)
* NodeJs default console.log/util.format convension
* Tiny code

```javascript
const log = require('@nanw/nwlog')(__filename)

//easy api
log('log')

//explicit level
log.debug('log.debug')
log.info('log.info')
log.warn('log.warn')
log.error('log.error')

//formatting
let d = {a: 1, b:'Transylvania'}
log('Formatting: %d %s %j', 12345, 'welcome to', d)
log('test error with stack:', new Error('demo'))

const log2 = require('@nanw/nwlog')('/anotherModule/index.js')
log2('Message from another module')
```
![nwlog screenshot](https://github.com/nanw1103/nwlog/blob/master/docs/screenshot.png?raw=true)

# Options

```javascript
const nwlog = require('@nanw/nwlog')

nwlog.config({
	//decorateConsole: true,	//whether decorate console.log/console.error. Default: true
	//writeToConsole: true,		//whether write to console for log operations. Default: true
	//fileName: './log/console.log',	//log file. If null, no log file will be created. Default: ./log/console.log
	//maxLength: 4 * 1024 * 1024,		//max file length
	//maxFiles: 3,				//max log files to keep
	//custom: () => 'custom-label-' + process.pid,	//A function to append custom label. E.g. add pid
	//maskPassword: true		//If enabled, tries to identify password string fields in log objects and mask them. Default: false
})

const log = nwlog(__filename)
log('log')
```
npm package: @nanxu/designable-core
Description: [![NPM version](https://img.shields.io/npm/v/@nanxu/designable-core.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-core) [![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-core.svg?style=flat)](https://npmjs.org/package/@nanxu/
Latest version: 1.0.0

# @nanxu/designable-core

[![NPM version](https://img.shields.io/npm/v/@nanxu/designable-core.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-core)
[![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-core.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-core)

## Install

```bash
$ yarn install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @nanxu/designable-formily-antd
Description: [![NPM version](https://img.shields.io/npm/v/@nanxu/designable-formily-antd.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-formily-antd) [![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-formily-antd.svg?style=flat)](https://n
Latest version: 1.0.3

# @nanxu/designable-formily-antd

[![NPM version](https://img.shields.io/npm/v/@nanxu/designable-formily-antd.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-formily-antd)
[![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-formily-antd.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-formily-antd)

## Install

```bash
$ yarn install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @nanxu/designable-formily-setters
Description: [![NPM version](https://img.shields.io/npm/v/@nanxu/designable-formily-setters.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-formily-setters) [![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-formily-setters.svg?style=flat)](
Latest version: 1.0.3

# @nanxu/designable-formily-setters

[![NPM version](https://img.shields.io/npm/v/@nanxu/designable-formily-setters.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-formily-setters)
[![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-formily-setters.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-formily-setters)

## Install

```bash
$ yarn install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @nanxu/designable-formily-transformer
Description: [![NPM version](https://img.shields.io/npm/v/@nanxu/designable-formily-transformer.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-formily-transformer) [![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-formily-transformer.svg?s
Latest version: 1.0.0

# @nanxu/designable-formily-transformer

[![NPM version](https://img.shields.io/npm/v/@nanxu/designable-formily-transformer.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-formily-transformer)
[![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-formily-transformer.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-formily-transformer)

## Install

```bash
$ yarn install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @nanxu/designable-react
Description: [![NPM version](https://img.shields.io/npm/v/@nanxu/designable-react.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-react) [![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-react.svg?style=flat)](https://npmjs.org/package/@nan
Latest version: 1.0.3

# @nanxu/designable-react

[![NPM version](https://img.shields.io/npm/v/@nanxu/designable-react.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-react)
[![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-react.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-react)

## Install

```bash
$ yarn install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @nanxu/designable-react-settings-form
Description: [![NPM version](https://img.shields.io/npm/v/@nanxu/designable-react-settings-form.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-react-settings-form) [![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-react-settings-form.svg?s
Latest version: 1.0.3

# @nanxu/designable-react-settings-form

[![NPM version](https://img.shields.io/npm/v/@nanxu/designable-react-settings-form.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-react-settings-form)
[![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-react-settings-form.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-react-settings-form)

## Install

```bash
$ yarn install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @nanxu/designable-shared
Description: [![NPM version](https://img.shields.io/npm/v/@nanxu/designable-shared.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-shared) [![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-shared.svg?style=flat)](https://npmjs.org/package/@
Latest version: 1.0.0

# @nanxu/designable-shared

[![NPM version](https://img.shields.io/npm/v/@nanxu/designable-shared.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-shared)
[![NPM downloads](http://img.shields.io/npm/dm/@nanxu/designable-shared.svg?style=flat)](https://npmjs.org/package/@nanxu/designable-shared)

## Install

```bash
$ yarn install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @nao1215/truss-url-signer
Description: Official Node.js/TypeScript signer for truss public image URLs.
Author: Naohiro CHIKAMATSU
Latest version: 0.11.4

# @nao1215/truss-url-signer

Official Node.js / TypeScript signer for `truss` public image URLs.

This package generates HMAC-signed URLs for `GET /images/by-path` and `GET /images/by-url` using the same canonicalization rules as `truss sign` and the server-side verifier.

## Installation

```sh
npm install @nao1215/truss-url-signer
```

## Quick Start

```ts
import { signPublicUrl } from "@nao1215/truss-url-signer";

const signedUrl = signPublicUrl({
  baseUrl: "https://images.example.com",
  source: {
    kind: "path",
    path: "hero.jpg",
  },
  transforms: {
    width: 1200,
    format: "webp",
    optimize: "lossy",
    targetQuality: "ssim:0.98",
  },
  keyId: "public-demo",
  secret: process.env.TRUSS_SIGNING_SECRET ?? "",
  expires: Math.floor(Date.now() / 1000) + 300,
});
```

## Remote URL Example

```ts
import { signPublicUrl } from "@nao1215/truss-url-signer";

const signedUrl = signPublicUrl({
  baseUrl: "https://images.example.com",
  source: {
    kind: "url",
    url: "https://origin.example.com/photo.png",
    version: "v3",
  },
  transforms: {
    width: 800,
    height: 800,
    fit: "cover",
    format: "avif",
  },
  watermark: {
    url: "https://cdn.example.com/logo.png",
    position: "bottom-right",
    opacity: 50,
    margin: 16,
  },
  keyId: "public-demo",
  secret: process.env.TRUSS_SIGNING_SECRET ?? "",
  expires: 1900000000,
});
```

## API

The package exports one function:

- `signPublicUrl(options)` returns a fully qualified signed URL string

`options` supports:

- `baseUrl`: externally visible `http` or `https` origin for truss
- `source`: `{ kind: "path", path, version? }` or `{ kind: "url", url, version? }`
- `transforms`: public query parameters such as `width`, `height`, `fit`, `format`, `quality`, `optimize`, `targetQuality`, `crop`, `blur`, and `sharpen`
- `watermark`: optional `watermarkUrl` parameters
- `keyId`, `secret`, `expires`
- `method`: optional canonical HTTP method, default `GET`

The package omits transform fields that would resolve to truss defaults, matching the Rust implementation. For the public contract and compatibility policy, see the repository's [Signed URL Specification](https://github.com/nao1215/truss/blob/main/docs/signed-url-spec.md).
It also rejects request-invariant invalid combinations before signing, including `fit` / `position` without bounded resize, `quality` with `optimize=lossless`, invalid `targetQuality` matrices, invalid crop strings, and watermark opacity outside `1..=100`.

## Runtime Notes

- This package targets Node.js because URL signing requires a secret and uses `node:crypto`.
- Generated URLs are compatible with `truss sign` and the server-side verifier.

## Maintainer Note

This package now publishes via npm trusted publishing on tagged GitHub releases.

## License

MIT
npm package: @nao1215/truss-wasm
Description: Official bundler-ready Wasm package for truss image transforms.
Author: Naohiro CHIKAMATSU
Latest version: 0.11.4

# @nao1215/truss-wasm

Official bundler-ready Wasm package for `truss`.

This package exposes the browser-facing Wasm adapter from `truss` as a prebuilt npm package for third-party web applications.

## What This Package Includes

- official Wasm build generated from `truss`
- browser-oriented bindings wrapped for npm consumers
- TypeScript definitions generated alongside the Wasm bindings
- a fixed feature set for reproducible third-party integration

Current official feature set:

- `wasm`
- `svg`
- `avif`

This package intentionally does **not** include `webp-lossy`. In browser builds, WebP output stays lossless in this package.

## Installation

```sh
npm install @nao1215/truss-wasm
```

## Quick Start

This package initializes the Wasm module at import time, so consumer code does not call `init()` explicitly.

```ts
import {
  getCapabilitiesJson,
  inspectImageJson,
  transformImage,
} from "@nao1215/truss-wasm";

const inputBytes = new Uint8Array(await file.arrayBuffer());
const capabilities = JSON.parse(getCapabilitiesJson());
const inspected = JSON.parse(inspectImageJson(inputBytes, undefined));

const result = transformImage(
  inputBytes,
  undefined,
  JSON.stringify({
    format: "jpeg",
    width: 1200,
    quality: 82,
    autoOrient: true,
  }),
);

const response = JSON.parse(result.responseJson);
const outputBlob = new Blob([result.bytes], {
  type: response.artifact.mimeType,
});
```

### Vite

Vite needs top-level await support for the package wrapper. Use `vite-plugin-top-level-await`:

```sh
npm install @nao1215/truss-wasm
npm install -D vite-plugin-top-level-await
```

```ts
import { defineConfig } from "vite";
import topLevelAwait from "vite-plugin-top-level-await";

export default defineConfig({
  plugins: [topLevelAwait()],
});
```

For a runnable example, see `examples/vite-truss-wasm` in the repository.

## Exported API

This package exports the generated Wasm bindings directly:

- `WasmTransformOutput`
- `getCapabilitiesJson()`
- `inspectImageJson(inputBytes, declaredMediaType?)`
- `transformImage(inputBytes, declaredMediaType?, optionsJson)`
- `transformImageWithWatermark(inputBytes, declaredMediaType?, optionsJson, watermarkBytes, watermarkOptionsJson)`

For the JSON payload shapes, limits, and runtime caveats, see the repository's [WASM Integration guide](https://github.com/nao1215/truss/blob/main/docs/wasm.md).

## Build From Source

```sh
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli --version 0.2.114

cd packages/truss-wasm
npm run build
npm pack --dry-run
```

`npm run build` writes the generated Wasm bindings into `packages/truss-wasm/dist/`. `npm pack` triggers the `prepack` script, which runs the same build automatically, and `--dry-run` performs a packaging smoke check without creating the tarball.

## License

MIT
npm package: @nao20010128nao/acorn-optional-chaining
Description: Support for optional chaining in acorn
Author: rockon999
Latest version: 0.0.5

# Optional Chaining Support for Acorn

[![NPM version](https://img.shields.io/npm/v/acorn-optional-chaining.svg)](https://www.npmjs.org/package/acorn-optional-chaining)

This is a plugin for [Acorn](https://github.com/acornjs/acorn) - a tiny, fast JavaScript parser, written completely in JavaScript.

## Usage

This module provides a plugin which extends the Acorn `Parser` class to handle optional chaining:

```javascript
import * as acorn from 'acorn';
import optionalChaining from 'acorn-optional-chaining';

acorn.Parser.extend(optionalChaining).parse('a?.b?.c');
```

## License

This plugin is released under an [MIT License](./LICENSE).

It was based off the structure of [`acorn-numeric-separator`](https://github.com/acornjs/acorn-numeric-separator).
npm package: @nao5151/posts-graph
Description: ![screenshot](https://github.com/NaoyukiMiyazaki/posts-graph/raw/master/screenshot.png)
Latest version: 0.4.1

# posts-graph

![screenshot](https://github.com/NaoyukiMiyazaki/posts-graph/raw/master/screenshot.png)

## development
`npm start`

## test
`npm test`

## publish
`npm publish`

## deploy github pages
`npm run deploy`
npm package: @naoak/workerize-transferable
Description: Helper functions for workerlize-loader to support transferables
Author: Naoaki Yamada
Latest version: 0.1.0

# workerize-transferable

[![Build Status](https://travis-ci.com/naoak/workerize-transferable.svg?branch=master)](https://travis-ci.com/naoak/workerize-transferable)

> Helper functions for workerlize-loader to support transferables.

## Install

```sh
npm i -D workerize-loader
npm i -S @naoak/workerize-transferable
```

### Usage

**worker.js**:

```js
import { setupTransferableMethodsOnWorker } from "@naoak/workerize-transferable";

export function increment(buffer) {
  buffer[0] += 1;
  return buffer;
}

setupTransferableMethodsOnWorker({
  // the name of function which use some transferables
  increment: {
    // specify an instance of the function
    fn: increment,
    // pick a transferable object from the result which is an instance of Int32Array
    pickTransferablesFromResult: (result) => [result.buffer],
  },
});
```

**index.js**:

```js
import worker from "workerize-loader!./worker";
import { setupTransferableMethodsOnMain } from "@naoak/workerize-transferable";

let instance = worker(); // `new` is optional

setupTransferableMethodsOnMain({
  // worker instance
  instance,
  // the name of method which use some transferables
  increment: {
    // pick a transferable object from the method parameters
    pickTransferablesFromParams: (params) => [params[0].buffer],
  },
});

(async () => {
  const buffer = new Int32Array([0]);
  const res = await instance.increment(await instance.increment(buffer));
  console.log(buffer.length); // 0
  console.log(res.length); // 1
  console.log(res[0]); // 2
})();
```

See [workerize-loader](https://github.com/developit/workerize-loader) for details how to setup workerize-loader.
npm package: @naoki85/react-simple-pagination-component
Description: This component is a simple React Pagination.
Author: naoki85
Latest version: 0.5.0

# react-simple-pagination-component
This component is a simple React Pagination.  

## Demo
[https://naoki85.github.io/react-simple-pagination-component/](https://naoki85.github.io/react-simple-pagination-component/)

## Install

```
$ npm i @naoki85/react-simple-pagination-component
# or
$ yarn add @naoki85/react-simple-pagination-component
```
This package also includes index.d.ts.

## Usage

```js
import React from 'react';
import { render } from 'react-dom';
import ReactSimplePaginationComponent from '@naoki85/react-simple-pagination-component';

const App: FC<{}> = () => {
  return (
    <ReactSimplePagination 
      page={1}
      maxPage={5}
      onClickAction={(page: number) => console.log(page)}
    />
  );
}
```

## Props

| Name | Type | Requirement | Description |
----|---- |---- |---- 
| page | number | ◯ | Current page number.
| maxPage | number | ◯ | Max number of pages.
| onClickAction | (number) => void | ◯ | Action when button is clicked.

## Contributes

### Build

```
$ npm run build
```

### Publish

```
$ npm run publishOnly
```

### Test page

```
$ cd examples
$ npm run start
```

### Publish a test page

```
$ cd examples
$ npm run gh-publish
```
npm package: @naokikimura/code-review-action-gosec-plugin
Description: Analyze code statically using gosec in Github actions
Author: Naoki Kimura
Latest version: 0.0.2

# Code review using gosec

Analyze code statically by using [gosec](https://github.com/securego/gosec/) in Github actions

## Inputs

### `files`

Specify directories

(Multiple directories can be specified by separating them with line feed)

### `options`

Changes `gosec` command line options.

Specify the options in JSON array format.
e.g.: `["-conf", ".gosecrc.json"]`

### `working_directory`

Changes the current working directory of the Node.js process

### `reporter_type_notation`

Change the reporter.

(Multiple can be specified separated by commas)

## Example usage

```yaml
name: Analyze code statically
"on": pull_request
jobs:
  reek:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Analyze code statically using gosec
        uses: naokikimura/gosec-action@v0
```

## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/naokikimura/gosec-action

## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
npm package: @naokim03/markdown-theme-solarized
Description: Solarized theme for markdown
Author: NaokiM03
Latest version: 1.0.2

# markdown-theme-solarized

Solarized theme for markdown.

## Installation

```sh
npm install @naokim03/markdown-theme-solarized
```

## Usage

Add the `.markdown` class to the html element that will contain the result of markdown build.


## License

markdown-theme-solarized is released under the MIT License