open-index/open-npm huggingface dataset:
npm package: @sadiqhayatuddeen/httpinfo
Description: A CLI application that helps you look up HTTP status codes from your terminal
Author: Sadiq hayatuddeen
Latest version: 1.0.0

![logo](./assets/images/httpinfo-logo.png)
# Description
`$ httpinfo` _HTTP Status Code Lookup_.

A CLI app for looking up HTTP status codes from the comfort of your terminal.

Instantly retrieve information on HTTP status codes, including their meaning, description, and specification. No more tedious web searches or cumbersome documentation.

*Features*

- Quick and easy lookup of HTTP status codes
- Detailed information on each status code, including meaning, description, and specification
- Convenient CLI interface for rapid lookup

# Getting Started
## Installation
`httpinfo` can be installed using [npm](https://npmjs.com):
```bash
npm install -g @sadiqhayatuddeen/httpinfo
```
or by cloning the repo and installing manually:
```bash
# cloning the repo
git clone https://github.com/devfloww/httpinfo
# enter the cloned repo directory
cd httpinfo
# Install the dependences
npm install
# Create a symlink of the program
npm link
# Now, run the command
httpinfo --help
# or sometimes on windows 
httpinfo.cmd --help
```
## Usage
- To seek help:
```bash
httpinfo [-h | --help]
```
- To look-up a status code with a short description (just the name):
```bash
httpinfo -c <code>
```
- To look-up a status code with a longer description (meaning, specification, examples): 
```bash
httpinfo -c <code> [--l | --long]
```
- To check version:
```bash@sadiqhayatuddeen/httpinfo
httpinfo [-v | --version]
```
- To update to latest version of the application
```bash
httpinfo --update 
```
## Removal 
And of course, when you don't need it anymore and want to remove it, run:
```bash
httpinfo --remove
```
or 
```bash
npm remove httpinfo
```
> If you were not satisfied with the experience you had with this tool, please do me a favor and call my attention for improvements. This will help me a lot and I will very much appreciate that.😅

Mail me @ [svdiqhayatuddeen@gmail.com](mailto:svdiqhayatuddeen@gmail.com) or raise an _Issue_ here on Github. Thank you.

# Support me
Buy me coffee to support😅.\

<a href="https://buymeacoffee.com/devfloww" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
npm package: @sadiqumar18/csv-to-xlsx
Description: Convert CSV files to XLSX (Excel 2007+ XML Format) files via Node.js CLI or API. credits to https://github.com/Aternus/csv-to-xlsx#aternuscsv-to-xlsx
Author: Kiril Reznik
Latest version: 1.0.0

# @aternus/csv-to-xlsx

Convert CSV files to XLSX (Excel 2007+ XML Format) files.

Written in JavaScript. Available for Node.js CLI and API.

Binaries are available for:

- Windows x64
- Linux x64
- MacOS x64

## Features

- Binaries - download and run via your OS's command-line utility
- Fast and Reliable
- Full UTF-8 support
- CSV Column detection
- Batch mode - convert a CSV folder to an XLSX folder
- Node.js CLI and API

## Installation

```bash
npm install @aternus/csv-to-xlsx
```

## Usage

### Binaries

Download the executables from the `bin` folder.

```bash
./csv-to-xlsx-linux -i "input-directory" -o "output-directory"
```

### Node.js CLI

Type `--help` for a full list of options.

```bash
npx @aternus/csv-to-xlsx -i "input-directory" -o "output-directory"
```

### Node.js API

```javascript
const path = require('path');
const convertCsvToXlsx = require('@aternus/csv-to-xlsx');

let source = path.join(__dirname, 'report.csv');
let destination = path.join(__dirname, 'converted_report.xlsx');

try {
  convertCsvToXlsx(source, destination);
} catch (e) {
  console.error(e.toString());
}
```

## License

Released under the MIT License - see `LICENSE.md` for details.
npm package: @sadkebab/run
Description: Declarative entrypoint for simple node scripts
Author: Alberto Harka
Latest version: 0.0.3

# Run

A minimal declarative entrypoint for simple node/deno/bun scripts.
Enjoy the ergonomic hooks for lifecycle handlers and say goodbye to top-level await errors.

## Supports

- JavaScript
- TypeScript
- ESM
- CJS
- Node.js
- Bun

## Install

With npm

```bash
npm install @sadkebab/run
```

With pnpm

```bash
pnpm add @sadkebab/run
```

With bun

```bash
bun add @sadkebab/run
```

## How to use

This utility exports a single `run` function you can use as an entrypoint for your node scripts.
Call the function with the main

```ts
import { run } from "@sadkebab/run";
import { memParse } from "@sadkebab/utils";

import { buildClient } from "./lib/db";
import mysql from "mysql2/promise";
import { z } from "zod";

const env = memParse(
  z.object({
    DB_HOST: z.string(),
    DB_PORT: z.coerce.number(),
    DB_USER: z.string(),
    DB_PASSWORD: z.string(),
    DB_DATABASE: z.string(),
  }),
  process.env,
);

run(
  async ({ db }) => {
    const postContents = await db.all({
      table: "wp_posts",
      fields: ["ID", "post_content"],
      where: [{ field: "post_type", op: "=", value: "page" }],
    });

    const updated = await Promise.all(
      postContents.map((post) =>
        db.update({
          table: "wp_posts",
          set: {
            post_content:
              "<h1>Please stop using WordPress. I am tired of people asking me to fix their WordPress website</h2>",
          },
          where: [{ field: "ID", op: "=", value: post.ID }],
        }),
      ),
    );

    console.log(`[Updated] ${updated.length} pages`);
    process.exit(0);
  },
  {
    before: async () => {
      const { DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_DATABASE } = env();

      const connection = await mysql.createConnection({
        host: DB_HOST,
        port: DB_PORT,
        user: DB_USER,
        password: DB_PASSWORD,
        database: DB_DATABASE,
      });

      const db = buildClient(connection, {
        log: false,
      });

      return { db };
    },
    cleanup: async ({ db }) => {
      await db.close();
    },
    onError: (error) => {
      console.error(error);
      process.exit(1);
    },
  },
);
```

## Options Parameter

The second parameter of the run function is optional and can have the following type.

```ts
type RunOptions<TContext> = {
  before?: () => TContext | Promise<TContext>;
  cleanup?: (ctx: TContext) => void | Promise<void>;
  onError?: (error: Error) => void;
  onInterrupt?: (singal: InterruptSignal) => void;
};
```

### Hooks

#### before

Will be run before the main function.
It'used to build a context object for your entrypoint that can be ergonomically recalled in the `cleanup` hook.

#### cleanup

Will be run when `process` emits and `exit` event.

#### onError

Will run if the program will throw an uncaught exception.

#### onInterrupt

Will run if the program receives an interruption signal, the specific signal string like `SIGINT` or `SIGTERM` will be passed as a parameter to the hook.
npm package: @sadn1ck/prosemirror-link-paste-plugin
Description: Plugin that allows users to paste links into the editor and have it converted to a link mark per the schema.
Author: Anik Das
Latest version: 0.0.3

# `@sadn1ck/prosemirror-link-paste-plugin`

Plugin that allows users to paste links into the editor and have it converted to a link mark per the schema

## Usage

Use it like a regular ProseMirror plugin. Make sure to define a link mark in your schema, and modify the `createLinkMark` function to return the link mark as per your schema.

```ts
const pmSchema = new Schema({
  nodes: {
    // ...
    text: { group: "inline" },
  },
  marks: {
    // see: https://github.com/ProseMirror/prosemirror-markdown/blob/master/src/schema.ts#L138-L148
    link: {
      attrs: {
        href: {},
      },
      inclusive: false,
      parseDOM: [
        {
          tag: "a[href]",
          getAttrs(dom) {
            return {
              href: dom.getAttribute("href"),
            };
          },
        },
      ],
      toDOM(node) {
        return ["a", node.attrs];
      },
    },
  },
});

// ...

const state = EditorState.create({
  schema: pmSchema,
  plugins: [
    // ...
    createLinkPastePlugin({
      schema: pmSchema,
      // should return the link mark in YOUR schema
      createLinkMark: (href) => pmSchema.marks.link.create({ href }),
    }),
  ],
});
```

Now, when you paste a link into the editor, it will be converted to a link mark.

> Click behaviour would depend on your application itself, but you can most likely add a click handler in a separate plugin (`plugin.props.handleClick`) to handle opening links in a new tab.
npm package: @sadness.ojisan/reghcss
Description: component library for GitHub like Article
Author: @sadness.ojisan
Latest version: 1.0.0

# reghcss

component library to create GitHub like article.

## how to use

install package

```
npm install @sadness.ojisan/reghcss
```

pass html(string) as props

```tsx
import * as React from "react";
import { ArticleWrapper } from "@sadness.ojisan/reghcss";

export default () => {
  return (
    <ArticleWrapper
      html={`
      <h1>this is h1</h1>
      <h2>this is h2</h2>
      <pre>
        <code>hello world!!</div>
      </pre>
    `}
    ></ArticleWrapper>
  );
};
```

### example

https://codesandbox.io/s/tender-swanson-r2ov9?fontsize=14&hidenavigation=1&theme=dark

## Special Thanks

I got a github-markdown.css from https://github.com/sindresorhus/github-markdown-css
npm package: @sadness.ojisan/rollup-template-for-component-lib
Description: component library を作るための rollup template
Author: sadness_ojisan
Latest version: 0.1.0

# rollup-template-for-component-lib

component library を作るための rollup template

## note

https://github.com/styled-components/styled-components/issues/3045#issuecomment-687088347 の問題があるので s-c は 4.4.1 にデグレした

## todo

- [x] TS 対応
- [x] 型定義を出力
- [x] 画像読み込み(png, jpg, gif)
- [x] tag から npm publish
- [x] minify
- [x] styling
- [ ] test を追加
- [ ] bundle size が大きい

## Q

- コンポーネントライブラリを作る時、tsc の target / module は ESNext にしといていいか？（呼び出す側でトランスパイルされる前提）
- rollup で TS 利用、型定義の出力サポート的に rollup-plugin-typescript2 を使うべき？ (not @rollup/plugin-typescript)
npm package: @sadness.ojisan/yarakasanai
Description: 本番環境でやらかさないためのサンプルアプリです。
Author: sadness_ojisan
Latest version: 1.0.0

# yarakasanai

[本番環境でやらかしちゃった人 Advent Calendar 2019](https://qiita.com/advent-calendar/2019/yarakashi-production) 23 日目([思いもよらないものを npm publish してしまった話（前任者の顔写真など）](https://qiita.com/sadnessOjisan/items/3069e79038c961458ba2))でやらかしたことを起こさないためのレポジトリです。

## 概要

やらかさないために・確実な publish をするために

- CI/CD サーバーからの publish
- 環境の固定やコード化

を行なったサンプルプロジェクトです。

ここで作ったモジュールは次のようにインストールできます。

```zsh
$ yarn add @sadness.ojisan/yarakasanai
```

また、上でインストールできるモジュールはこのように使うことができます。

[codesandbox.io](https://codesandbox.io/s/nice-rhodes-bgzs1?fontsize=14&hidenavigation=1&theme=dark)

## 環境構築

node は v12 に固定しています(engines + Github Actions)

```
$ node -v                                                                                                    
v12.13.0
```

```zsh
$ yarn install
```

## やらかしたとき

```zsh
$ npm unpublish yarakasanai --force
```

## ref

- https://efcl.info/2018/06/21/can-npm-publish/
- https://tech.bitbank.cc/npm-ci-cd/
- https://dev.classmethod.jp/etc/github-actions-npm-automatic-release/
- https://github.com/actions/setup-node/issues/52
- https://docs.npmjs.com/cli/unpublish
- https://ota42y.com/blog/2014/09/29/npm-publish
- https://efcl.info/2015/04/30/npm-namespace/
- https://one-it-thing.com/327/

## License

MIT