An open API service indexing awesome lists of open source software.

https://github.com/joellefkowitz/hashed-env

Seed pseudo-random environment variables with a repository's git hash.
https://github.com/joellefkowitz/hashed-env

commit environment git hashing

Last synced: 5 months ago
JSON representation

Seed pseudo-random environment variables with a repository's git hash.

Awesome Lists containing this project

README

          

# Hashed env

Seed pseudo-random environment variables with a repository's git hash.

![Review](https://img.shields.io/github/actions/workflow/status/JoelLefkowitz/hashed-env/review.yaml)
![Version](https://img.shields.io/npm/v/hashed-env)
![Downloads](https://img.shields.io/npm/dw/hashed-env)
![Size](https://img.shields.io/bundlephobia/min/hashed-env)
![Quality](https://img.shields.io/codacy/grade/14dda3ed73cc47cca315d9582ce93fb7)
![Coverage](https://img.shields.io/codacy/coverage/14dda3ed73cc47cca315d9582ce93fb7)

## Installing

```bash
npm install hashed-env
```

## Documentation

Documentation and more detailed examples are hosted on [Github Pages](https://joellefkowitz.github.io/hashed-env).

## Usage

```ts
import { set } from './hashed-env';

set('foo', 'bar');

process.env.foo = ... // MD5 of (.concat('bar'))
```

## Tooling

### Dependencies

To install dependencies:

```bash
yarn install
```

### Tests

To run tests:

```bash
yarn test
```

### Documentation

To generate the documentation locally:

```bash
yarn docs
```

### Linters

To run linters:

```bash
yarn lint
```

### Formatters

To run formatters:

```bash
yarn format
```

## Contributing

Please read this repository's [Code of Conduct](CODE_OF_CONDUCT.md) which outlines our collaboration standards and the [Changelog](CHANGELOG.md) for details on breaking changes that have been made.

This repository adheres to semantic versioning standards. For more information on semantic versioning visit [SemVer](https://semver.org).

Bump2version is used to version and tag changes. For example:

```bash
bump2version patch
```

### Contributors

- [Joel Lefkowitz](https://github.com/joellefkowitz) - Initial work

## Remarks

Lots of love to the open source community!


Be kind to your mind
Love each other
It's ok to have a bad day