open-index/open-npm huggingface dataset:
npm package: @luckydye/log
Description: A tiny JavaScript logging library inspired by charmbracelet/log.
Latest version: 0.8.1

# log

A small (<2KB gzipped minified) JavaScript logging library inspired by charmbracelet/log and docs.rs/env_logger.

## Usage

```bash
npm i @luckydye/log
```

## Examples

### Log levels

```javascript
import logger from '@luckydye/log';

const log = logger().prefix("Test").trace();

log.info("Log info");
log.error("This is an error!");
```

```bash
02/06/2024 00:38:05 INFO <log.spec.ts:7:13> Test: Hello, world!!
02/05/2024 13:32:53 ERROR <log.spec.ts:7:41> Test: This is an error!
03/01/2024 22:41:53 ERROR <log.spec.ts:43:25> testing err=Test error
SyntaxError: Test error
    at <parse> (:0)
    at <anonymous> (/Users/tihav/source/log/log.spec.ts:82:1)
```

### Log images to supporting terminals

```javascript
log.img(path.resolve("./success.png"));
```

### Formatted arguments

```javascript
log.warn('An Object', 'obj', { one: 2 });
```

```bash
02/06/2024 00:38:05 WARN <log.spec.ts:17:64> Text here obj=Object{"one":2}
```

### JSON output

```javascript
const logJson = logger().prefix('Json').trace().json();
logJson.info('Hello, world!');
```

```bash
{"ts":"2024-02-05T13:33:05.270Z","level":"info","prefix":"Json","location":"log.spec.ts:9:48","msg":"Hello, world!","args":["Hello, world!"]}
```

### Deno

```javascript
import logger from "npm:@luckydye/log";

const log = logger().prefix("Deno");
log.error("Test error");
```

### InfluxDB

Send logs to a InfluxDB (v2).

```javascript
import logger from "@luckydye/log";
import { InfluxWriteStream } from '@luckydye/log/influx';

const log = logger()
  .prefix('Influx')
  .pipeTo(
    new InfluxWriteStream({
      org: 'organisation',
      bucket: 'bucket_name',
      db: 'database_name',
      url: 'https://influxdb.example.com',
      token: 'ACCESS_TOKEN',
    })
  );

// JS_LOG filtering applies here as well
log.info('Hello, world!');
```

## Environment variables

### JS_LOG

Set the log level. Default is `info`.

#### Set log level for specific prefixes.

```bash
JS_LOG=[prefix][=][level][,...]
```

```bash
JS_LOG = "error,Test=debug"
```

## Configuration

### Prefix

```javascript
const log = logger().prefix("Topic");
```

### Enable stack trace

Display last frame of stack trace in the output.

```javascript
const log = logger().trace();
```

### Set time format

Set the time format. Default is `local`.
Set to `false` to disable time.

```javascript
const log = logger().time("local" | "kitchen" | "iso" | "utc");

// disable time
const log = logger().time(false);
```

### Enable json output

```javascript
const log = logger().json();
```

### Pipe log messages to arbitrary stream

```javascript
const log = logger().pipeTo(WriteableStream);
```
npm package: @luckyf/testpackage
Description: - Build: `pnpm run build` - Lint: `pnpm run lint` - Add changeset per change: `pnpm changeset` - Release package:   - Commit all Git changes   - Create Version: `pnpm changeset version`   - Publish package: `pnpm changeset publish`
Author: LuckyF
Latest version: 0.9.2

# @luckyf/testpackage

- Build: `pnpm run build`
- Lint: `pnpm run lint`
- Add changeset per change: `pnpm changeset`
- Release package:
  - Commit all Git changes
  - Create Version: `pnpm changeset version`
  - Publish package: `pnpm changeset publish`
npm package: @luckyfinance/core
Description: Core contracts for the LuckySwap protocol
Author: LuckyDogeDev
Latest version: 1.5.0

# LuckySwap

https://goldnugget.com/

## Deployed Contracts

https://dev.goldnugget.com/luckyswap/contracts

## Docs

[Development](docs/DEVELOPMENT.md)

[Deployment](docs/DEPLOYMENT.md)

[History](docs/HISTORY.md)

## Security

[Security Policy](SECURITY.md)

## License

[MIT](LICENSE.txt)
npm package: @luckyfinance/hardhat-framework
Description: Common test utilities for hardhat development
Author: BoringCrypto, Keno, I'm Software
Latest version: 1.0.0

# hardhat-framework
 
This package helps configuring a repo for hardhat development. This is very opinionated :)

### How to include this?
All the packages needed are included in this package, so all you need to add in your repo's `package.json` is:

```
    "scripts": {
        "test": "hardhat test",
        "format": "prettier --write contracts/**/*.sol *.js *.json test/**/*.js",
        "pretty-quick": "pretty-quick",
        "coverage": "hardhat coverage"
    },
    "devDependencies": {
        "@luckyfinance/hardhat-framework": "sushiswap/hardhat-framework"
    }
```

### Setting up your .env
You can include your environment variables in a `.env` file in the root of your repo. Alternatively you can set an actual environment variable called `DOTENV_PATH` to point to a central `.env` file to be used. This way you can use the same environment settings accross multiple projects.

Some useful settings:
```
ALCHEMY_API_KEY=
COINMARKETCAP_API_KEY=
HARDHAT_NETWORK=hardhat
HARDHAT_MAX_MEMORY=4096
HARDHAT_SHOW_STACK_TRACES=true
HARDHAT_VERBOSE=true
```

### Use default settings for configuration
Many settings are pre-defined in hardhat-framework. The following changes import all those settings as well as allow you to make any changes/additions to them in a central settings.js file.

To use the defaults defined in hardhat-framework, change or create the following files:

**hardhat.config.js**
```
module.exports = require("@luckyfinance/hardhat-framework").config.hardhat(require("./settings").hardhat)
```

**.prettierrc.js**
```
module.exports = require("@luckyfinance/hardhat-framework").config.prettier(require("./settings").prettier)
```

**.solcover.js**
```
module.exports = require("@luckyfinance/hardhat-framework").config.solcover(require("./settings").solcover)
```

And add a `settings.js` file:
```
module.exports = {
    hardhat: { },
    solcover: { },
    prettier: { }
}
```

TODO:

- Manage deployments
- Github hooks
- Getting husky to work properly (pre-commit in package.json)
- Integrate Certora
- Integrate Slither
npm package: @luckyfinance/sdk
Description: 🛠 An SDK for building applications on top of Luckyswap.
Author: LuckyDogeDev
Latest version: 3.5.0

# Luckyswap SDK

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

This modifies uniswap-sdk's UniswapV2Factory address. The new address for sushiswap is  `0x12a7FD816401d75F4a76915d3a9a9E4AF0EcBb0D`.

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/sushiswap/sushiswap-sdk.git
```

Move into the sushiswap-sdk working directory

```sh
cd sushiswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @luckyhappy/mood-spark
Description: Generate a daily mood spark card in your terminal.
Latest version: 0.1.1

# mood-spark

A tiny and playful npm package that generates a daily mood card in terminal.

## What it does

- CLI command: print a "mood + focus + micro challenge" card
- Deterministic by date or by custom seed
- Reusable API for your own apps

## Install

Quick run without install:

```bash
npx @luckyhappy/mood-spark
```

Install into current project:

```bash
npm i @luckyhappy/mood-spark
```

Run after local install:

```bash
npm exec mood-spark -- --seed sprint-42
```

For global CLI usage (then use `mood-spark` directly):

```bash
npm i -g @luckyhappy/mood-spark
```

## CLI usage

```bash
mood-spark
mood-spark --seed sprint-42
mood-spark --json
mood-spark --no-ansi
```

## API usage

```js
import { drawMoodCard, formatCard } from "@luckyhappy/mood-spark";

const card = drawMoodCard({ seed: "release-day" });
console.log(card);
console.log(formatCard(card, { ansi: false }));
```

## Local development

```bash
npm install
npm test
npm run start
npm run check:pack
```

## Maintainer note

If you fork this project and republish under your own scope, replace package
name in `package.json` with `@<your-npm-username>/mood-spark`.

## License

MIT
npm package: @luckykiet/node-printer
Description: Node.js native printer bindings. Fork of @thiagoelg/node-printer with Node 24+ support.
Author: Ion Lupascu
Latest version: 1.0.3

# @luckykiet/node-printer

Native printer bindings for Node.js on POSIX and Windows. Fork of [@thiagoelg/node-printer](https://github.com/thiagoelg/node-printer) with **Node 24+ support**.

[![npm version](https://badge.fury.io/js/@luckykiet%2Fnode-printer.svg)](https://www.npmjs.com/package/@luckykiet/node-printer)

## What's different from the original?

- **Node 24/25 support** — C++20 build, updated V8 compatibility
- **VS2026 compatibility** — fixed C++ two-phase name lookup for MSVC 18+
- **No Python dependency** — build uses Node.js instead of Python for source file discovery
- Updated native dependencies (`nan` 2.25+, `node-abi` 4.26+)
- macOS arm64 (Apple Silicon) prebuild support
- Modernized GitHub Actions (v4, Node 24)
- Minimum Node version: **20.0.0**

## Install

```bash
npm install @luckykiet/node-printer
```

### Build prerequisites

The native addon compiles from source if no prebuild is available.

**macOS:** Xcode Command Line Tools (ships with CUPS)
```bash
xcode-select --install
```

**Linux (Debian/Ubuntu):**
```bash
sudo apt-get install libcups2-dev
```

**Windows:** Visual Studio Build Tools with C++ workload

## API

```js
const printer = require('@luckykiet/node-printer');
```

| Method | Description |
|--------|-------------|
| `getPrinters()` | List all installed printers with jobs and statuses |
| `getPrinter(name)` | Get specific printer info |
| `getDefaultPrinterName()` | Get default printer name |
| `getPrinterDriverOptions(name)` | Get driver options (POSIX only) |
| `getSelectedPaperSize(name)` | Get default paper size (POSIX only) |
| `printDirect(options)` | Send raw data to printer |
| `printFile(options)` | Print a file (POSIX only) |
| `getSupportedPrintFormats()` | List supported formats (RAW, TEXT, PDF, etc.) |
| `getJob(printerName, jobId)` | Get job info |
| `setJob(printerName, jobId, command)` | Send command to job (e.g. CANCEL) |
| `getSupportedJobCommands()` | List supported job commands |

## Examples

```js
const printer = require('@luckykiet/node-printer');

// List printers
console.log(printer.getPrinters());

// Print raw text
printer.printDirect({
  data: 'Hello from Node.js!',
  printer: printer.getDefaultPrinterName(),
  type: 'TEXT',
  success: (jobId) => console.log('Job ID:', jobId),
  error: (err) => console.error(err),
});
```

See the [examples](./examples) directory for more usage patterns.

## Credits

- **Ion Lupascu** — original author ([tojocky/node-printer](https://github.com/tojocky/node-printer))
- **Thiago Lugli** ([@thiagoelg](https://github.com/thiagoelg)) — Node 12+ support & prebuild CI
- **Eko Eryanto** ([@ekoeryanto](https://github.com/ekoeryanto)) — prebuild integration

## License

[MIT](http://opensource.org/licenses/MIT)
npm package: @luckylab/json-formater
Description: We always have a headache when we want to make an Object to a json string;
Author: luckyscript
Latest version: 1.1.0

# json formater
We always have a headache when we want to make an Object to a json string;

Think this case:
when we want to copy our javascript object`{'a': 1}` to some mock platform, it always shows JSON error, because it's not a correct json.

so we use JSON.stringify and then copy? However, it always produce some escape and other token.

Use this package to solve the problem!just:
```
import formater from 'json-formater';
formater.format('{a: "b"}')
```


## parser

JSON has 2 types
* object
* array

### Objectlike JSON
![](https://www.json.org/img/object.png)

### Arraylike JSON
![](https://www.json.org/img/array.png)

In addition, JSON has 6 value types，include above 2 types and 4 types following.

* number
* string
* boolean
* null

![](https://www.json.org/img/value.png)

### string
![](https://www.json.org/img/string.png)

### number
![](https://www.json.org/img/number.png)

### boolean & null
boolean & null has literal value: true, false, null

### whitespace
Whitespace can be inserted between any pair of tokens. Excepting a few encoding details, that completely describes the language.
![](https://www.json.org/img/whitespace.png)

## generator
transform AST to JSON code
npm package: @luckymachines/autoloop
Description: This is a template to quickly spin up a hardhat project with some standard packages. The sample contract / test / deploy files are left here for reference, but should be deleted from any production project.
Author: Max Meier
Latest version: 0.0.38

# Lucky Machines AutoLoop

An on-chain automation loop for your blockchain automation needs. Perfect for on-chain game loops.

# Integrate with your smart contract

Your contract should inherit from [AutoLoopCompatible.sol](https://github.com/LuckyMachines/autoloop/blob/main/contracts/AutoLoopCompatible.sol) (see [example](https://github.com/LuckyMachines/autoloop/blob/main/contracts/sample/NumberGoUp.sol))

## Register AutoLoop compatible contract through AutoLoop Dashboard

[AutoLoop dashboard](https://auto-loop-ui-godwoken.vercel.app/)

## Register AutoLoop compatible contract through CLI:

```shell
yarn register-contract <NETWORK>
```