open-index/open-npm huggingface dataset:
npm package: @jimpick/w3c-keyname
Description: Get a KeyboardEvent.key-style string from an event
Author: Marijn Haverbeke
Latest version: 2.1.0-2

# W3C keyname

Tiny library that exports a function `keyName` that takes a keyboard event and
returns a
[`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)-style
string. Will use the actual `key` property of the event if available,
and fall back to a value synthesized from the `keyCode` otherwise.

Probably often wrong on non-US keyboards, since the correspondence
between a key code and the character it produces when shift is held is
predicted based on a hard-coded table. Meant as a fallback for
`KeyboardEvent.name`, not a replacement.

License: MIT
npm package: @jimrazmus/ami-access-manager
Description: Manage AMI launch permissions
Author: Jim Razmus II
Latest version: 0.4.4

# ami-access-manager

[![CircleCI](https://circleci.com/gh/jimrazmus/ami-access-manager/tree/master.svg?style=svg)](https://circleci.com/gh/jimrazmus/ami-access-manager/tree/master)
[![CodeCov](https://codecov.io/gh/jimrazmus/ami-access-manager/branch/master/graph/badge.svg)](https://codecov.io/gh/jimrazmus/ami-access-manager)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5985d326133248d483bd8d7e1105979a)](https://www.codacy.com/app/jim.razmus/ami-access-manager?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=jimrazmus/ami-access-manager&amp;utm_campaign=Badge_Grade)
[![Known Vulnerabilities](https://snyk.io/test/github/jimrazmus/ami-access-manager/badge.svg?targetFile=package.json)](https://snyk.io/test/github/jimrazmus/ami-access-manager?targetFile=package.json)
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=jimrazmus/ami-access-manager)](https://dependabot.com)
[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org)

## Summary

Easily manage the launch permissions on thousands of your Amazon Machine Images (AMI). You define the queries that identify your AMIs along with the list of account IDs that should have launch permissions and AMI Access Manager will make it happen.

## Documentation

Detailed documentation is available at [https://jimrazmus.github.io/ami-access-manager/](https://jimrazmus.github.io/ami-access-manager/)

## Install

    #> npm install -g @jimrazmus/ami-access-manager

## Setup

1. Confirm you have the appropriate [Amazon permissions](https://jimrazmus.github.io/ami-access-manager/)
1. Create a [configuration file](https://jimrazmus.github.io/ami-access-manager/)

## Usage

    Usage: aam [options] [command]

    Manage AMI launch permissions

    Options:
      -l, --loglevel <level>  Set logging level {trace|debug|info|warn|error} (default: "error")
      -V, --version           output the version number
      -h, --help              output usage information

    Commands:
      auth                    Test authentication via STS getCallerIdentity
      add                     Add missing account IDs to AMI permissions
      full                    Both add and remove, account IDs to exactly match configuration
      remove                  Remove extra account IDs from AMI permissions
      *                       Invalid commands print help

## Contributing

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

## Author

Jim Razmus II

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
npm package: @jimsheen/create-barrel-folder
Description: This CLI tool helps to create a folder with a barrel index file and offers options to generate the following:
Author: James Sheen
Latest version: 2.0.0

# Create React Component

This CLI tool helps to create a folder with a barrel index file and offers options to generate the following:

- React Functional Component
- React Hook
- Test file with testing library and component render setup
- Storybook stories
- Styled component file
- Support for custom configuration using an `.rc` file

## Usage

`npx create-barrel-folder`

creates directory:

```
ComponentName
- ComponentName.tsx
- index.ts
```

`index.ts` (barrel file)

```ts
export { default } from './ComponentName'
export * from './ComponentName'
```

`ComponentName.tsx`

```ts
import React from 'react'
import './ComponentName.scss'

export interface ComponentNameProps {}

const ComponentName = ({}: ComponentNameProps) => {
  return (
    <>
      <h1>ComponentName</h1>
    </>
  )
}

export default ComponentName
```

## Custom Configuration

You can define a custom config file in your project root to set default behavior of the tool. The tool will look for the config file in the following order:

- a package.json property if it is needed
- a JSON or YAML, JS "rc file" .ggcrcrc or .ggcrcrc.json or .ggcrcrc.js or.ggcrcrc.yml, .ggcrcrc.yaml

Your custom config file should export an object with the configuration. The default overridable configuration structure is as follows:

```js
// ggcrcrc.js
module.exports = {
  component: {
    barrel: true,
    story: true,
    test: true,
    styled: true,
    rules: {
      required: {
        message: 'Component name is required',
      },
      tests: [
        {
          validate: (value) => /^[A-Z]/.test(value),
          message: 'Component name should start with a capital letter',
        },
        {
          validate: (value) => value.length >= 3,
          message: 'Component name should be at least 3 characters long',
        },
      ],
    },
  },
  hook: {
    barrel: true,
    test: true,
    styled: false,
    rules: {
      required: {
        message: 'Hook name is required',
      },
      tests: [
        {
          validate: (value) => /^use[A-Z]/.test(value),
          message: "Hook name should start with 'use'",
        },
      ],
    },
  },
}
```

You can override any of these defaults in your `.cbfrc.js` or `.cbfrc.ts` file. If you are using TypeScript for your `.cbfrc.ts` file, remember to transpile it to JavaScript, as Node.js cannot understand TypeScript natively.

## TODO

- [ ] Allow user to pass custom templates
- [ ] pass file name as default arg e.g `crc componentName`
- [x] Support custom `.rc` configuration files
npm package: @jimson.ma/node-cmd-demo
Description: this is an example of node command line application
Latest version: 1.0.1

# node-cmd-demo
this is an example of node command line application

## Libs

#### Input / Interactive

  - Commander: https://github.com/tj/commander.js 
  - enquirer: https://github.com/enquirer/enquirer
 
#### Progress

  - Ora：https://github.com/sindresorhus/ora 
  - CLI-Progress：https://github.com/npkgz/cli-progress 

#### Output
  - Table： https://github.com/gajus/table 
  - Clipboardy： https://github.com/sindresorhus/clipboardy 
  - Archy： https://github.com/substack/node-archy 
  - Chalk： https://github.com/chalk/chalk
npm package: @jimuelpalaca/str
Description: A string helper class for nodejs
Author: Jimuel Palaca
Latest version: 0.0.2

# Str

A simple string helper for NodeJS Project

# How to install

```bash
npm install @jimuelpalaca/str
```

# Usage

## random(len)
```js
import { Str } from '@jimuelpalaca/str';

console.log(Str.random(15));
// => 'dsydbmuesftlbx6'

// By default length is 10
console.log(Str.random())
// => 'uhgbsrzp72'

```

## ucWords(str)
```js
import { Str } from '@jimuelpalaca/str';

const str = 'page title';
console.log(Str.ucWords(str));
// => 'Page Title'
```

## toSlug(str)
```js
import { Str } from '@jimuelpalaca/str';

const str = 'page title';
console.log(Str.toSlug(str));
// => 'page-title';
```

## slugToWord(str)
```js
import { Str } from '@jimuelpalaca/str';

const str = 'page-title';
console.log(Str.slugToWord(str));
// => 'Page Title';
```

## toSnakeCase(str)
```js
import { Str } from '@jimuelpalaca/str';

const str = 'page title';
console.log(Str.toSnakeCase(str));
// => 'page_title';
```

## snakeToWord(str)
```js
import { Str } from '@jimuelpalaca/str';

const str = 'page_title';
console.log(Str.snakeToWord(str));
// => 'Page Title';
```