open-index/open-npm huggingface dataset:
npm package: 12fromto24hours
Description: switch between 24 and 12 hours made easy.
Author: imed jaberi
Latest version: 1.2.2

# 12 From To 24 Hours

[![Build Status](https://travis-ci.org/3imed-jaberi/12-from-to-24-hours.svg?branch=master)](https://travis-ci.org/3imed-jaberi/12-from-to-24-hours)

> Coverage 100%

### Easy and tiny way to switch between 24 and 12 hours systems.

## Installation

```bash
# npm
$ npm install 12fromto24hours
# yarn
$ yarn add 12fromto24hours
```

## Usage

The method of use is simple and very easy. Just follow these steps:

```javascript
const _12FromTo24Hours = require("12fromto24hours");

// From 12 to 24 ..
_12FromTo24Hours("8:00 PM"); // 20:00

// From 24 to 12 ..
_12FromTo24Hours("20:00"); // 8:00 PM
```

#### License

[MIT](LICENSE) &copy; [Imed Jaberi](https://github.com/3imed-jaberi)
npm package: 12g
Description: Administration tool for development and devops, according to the 12factor principles as applied by @grrr-amsterdam.
Author: David Spreekmeester
Latest version: 1.0.1

# 12g

[![Build Status](https://travis-ci.org/grrr-amsterdam/12g.svg)](https://travis-ci.org/grrr-amsterdam/12g)
[![Greenkeeper badge](https://badges.greenkeeper.io/grrr-amsterdam/12g.svg)](https://greenkeeper.io/)
[![Dependencies](https://david-dm.org/grrr-amsterdam/12g.svg)](https://david-dm.org/grrr-amsterdam/12g)

Administration tool for development and devops, according to the 12factor principles as applied by [Grrr](https://github.com/grrr-amsterdam)


## Install
```bash
$ npm install -g 12g
```


## Commands

### Display help
```bash
$ 12g -h [command] [subcommand]
```

### Environment
#### Create a template `.env` file
```bash
$ 12g env template
```
This will create a copy of your local `.env` file, named `.env.template`, with all values emptied.

#### Get variable from a `.env` file
```bash
$ 12g env get -e [target environment name] --var=DB_HOST
```
This will print the value from the environment variable set in the `.env` file on the target.
Will return `undefined` if the variable is not set.

#### List variables from a `.env` file
```bash
$ 12g env list -e [target environment name]
```
This will list the variables from the `.env` file on the target, without quotes or comments.
Target environment is probably `development`, `staging`, `production`, etcetera,
depending on your setup.

If the targeted environment is remote, an SSH connection will be attempted, 
if Capistrano configuration can be found.

##### Json
Default the values will be pretty-printed, but listing in JSON is also possible:
```bash
$ 12g env list -e [target environment name] -o json
```
`-o` or `--output` sets the output format.


#### Current environment
```bash
$ 12g env name
```
This will print out the name of the current environment.

### Docker shortcut
Use `12g dock [command]` to execute a Docker command directly on your Docker Compose webserver.
It has to be running and it will have to adhere to the naming standards as we use them at
@grrr-amsterdam, which is basically calling your httpd service 'web'.

Examples:
```bash
$ 12g dock bash
$ 12g dock g spawn
$ 12g dock g snippet create
```


## Shorthand
You can use shorthand syntax in the provided argument for common environment names:

 * `p` becomes `production`
 * `s` becomes `staging`
 * `i` becomes `integration`
 * `d` becomes `development`
 * `t` becomes `testing`

For instance:
```bash
$ 12g env list -e s
```
To list the environment for `staging`.
npm package: 12g-cleandotenv
Description: This package enables you to load .env files and return their values as an object.
Author: David Spreekmeester
Latest version: 1.0.1

# 12g-cleandotenv

This package enables you to load .env files and return their values as an object.

It cleans out:
* Comment lines
* Single or double quotes from values


## Usage
```node
const dotenv = require('12g-cleandotenv')

dotenv.load()
.then(vars => {
    console.log(vars)
})
```


## Methods
### `.load([path])`
Loads a `.env` file and returns the cleaned up variables in an object, as a Promise.

### `.clean(input)`
Cleans up the content of a `.env` file and returns the variables in an object.
The env file content input can be a `string` or an `object`.
npm package: 12g-dynamic-env-vars
Description: npm package to load specified config vars from either a .env file, or as ENV vars from the shell
Author: David Spreekmeester
Latest version: 1.0.1

# 12g-dynamic-env-vars
npm package to load specified config vars from either a .env file, or as ENV vars from the shell |  | https://www.npmjs.com/package/12g-dynamic-env-vars
npm package: 12g-env-template
Description: Create a .env template / example file based on a local .env
Author: David Spreekmeester
Latest version: 1.0.6

# 12g-env-template

[![Greenkeeper badge](https://badges.greenkeeper.io/grrr-amsterdam/12g-env-template.svg)](https://greenkeeper.io/)

This package creates a template file based on your local `.env` file.
It will empty out all values, but it will leave comments and newlines in.

[![Greenkeeper badge](https://badges.greenkeeper.io/grrr-amsterdam/12g-env-template.svg)](https://greenkeeper.io/)


## Usage
Install the dependency:
```bash
$ npm install --save 12g-env-template
```

Then require it in your code:
```
var template = require('12g-env-template');
```

Then create a template file:
```
template.create()
```

Or with options:
```
template.create('.env.production', '.env.example')
```

## Methods

### `.create([input file], [output file])`
By default, it will take `.env` as input and use `.env.template` as output.


### `.exists()`
Returns whether the template file already exists.
npm package: 12ka5taha_word_counter
Description: This is a TS word_counter project with using inquirer and there method use "trim(), split(" "),& lenght"
Author: HAFIZ MUHAMMAD TAHA
Latest version: 2.0.0

# word_counter
This is a TS word_counter project with using inquirer and there method use "trim(), split(" "),&amp; lenght"
npm package: 12libs-react-components-template
Description: 一个 React 组件库
Author: pasord
Latest version: 0.0.1

# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default tseslint.config({
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})
```

- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
- Optionally add `...tseslint.configs.stylisticTypeChecked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:

```js
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
  // Set the react version
  settings: { react: { version: '18.3' } },
  plugins: {
    // Add the react plugin
    react,
  },
  rules: {
    // other rules...
    // Enable its recommended rules
    ...react.configs.recommended.rules,
    ...react.configs['jsx-runtime'].rules,
  },
})
```