# hashed-env

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

Latest version **1.1.1** (published 2023-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install hashed-env
pnpm add hashed-env
yarn add hashed-env
bun add hashed-env
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2023-02-21 |
| First published | 2021-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joel Lefkowitz |
| Maintainers | joellefkowitz |

## Links

- npm: https://www.npmjs.com/package/hashed-env
- Repository: https://github.com/joellefkowitz/hashed-env
- Homepage: https://hashed-env.readthedocs.io
- Issues: https://github.com/joellefkowitz/hashed-env/issues
- npm.io page: https://npm.io/package/hashed-env

## Dependencies (1)

- [git-rev-sync](https://npm.io/package/git-rev-sync.md) ^3.0.1

## Recent versions

- 1.1.1 (latest) — 2023-02-21
- 1.1.0 — 2023-02-21
- 1.0.0 — 2021-11-20

## README

# Hashed env

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

## Status

| Source     | Shields                                                                |
| ---------- | ---------------------------------------------------------------------- |
| Project    | ![latest_release] ![license] ![line_count] ![language_count]           |
| Health     | ![documentation] ![review_action] ![codacy_quality] ![codacy_coverage] |
| Publishers | ![npm_version] ![npm_downloads]                                        |
| Repository | ![open_issues] ![closed_issues] ![open_pulls] ![closed_pulls]          |
| Activity   | ![contributors] ![monthly_commits] ![last_commit]                      |

## Installation

```bash
npm i hashed-env
```

## Usage

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

set('foo', 'bar');

process.env.foo = ... // MD5 of (<git long hash>.concat('bar'))
```

## Tests

To run tests:

```bash
nps test
```

## Documentation

This repository's documentation is hosted on [Read the Docs](https://hashed-env.readthedocs.io/en/latest).

To generate the documentation locally:

```bash
quickdocs
```

## Linters

To run linters:

```bash
nps lint
```

## Formatters

To run formatters:

```bash
nps format
```

## Continuous integration

This repository uses GitHub Actions to lint and test each commit. Each commit should be formatted and its corresponding documentation should be updated.

## Versioning

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
```

## Changelog

Please read this repository's [changelog](CHANGELOG.md) for details on changes that have been made.

## Contributing

Please read this repository's guidelines on [contributing](CONTRIBUTING.md) for details on the process for submitting pull requests. Moreover, our [code of conduct](CODE_OF_CONDUCT.md) declares our collaboration standards.

## Contributors

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

## Remarks

Lots of love to the open source community!

<p align='center'>
    <img width=200 height=200 src='https://media.giphy.com/media/osAcIGTSyeovPq6Xph/giphy.gif' alt='Be kind to your mind' />
    <img width=200 height=200 src='https://media.giphy.com/media/KEAAbQ5clGWJwuJuZB/giphy.gif' alt='Love each other' />
    <img width=200 height=200 src='https://media.giphy.com/media/WRWykrFkxJA6JJuTvc/giphy.gif' alt="It's ok to have a bad day" />
</p>

[latest_release]: https://img.shields.io/github/v/tag/joellefkowitz/hashed-env "Latest release"
[license]: https://img.shields.io/github/license/joellefkowitz/hashed-env "License"
[line_count]: https://img.shields.io/tokei/lines/github/joellefkowitz/hashed-env "Line count"
[language_count]: https://img.shields.io/github/languages/count/joellefkowitz/hashed-env "Language count"
[documentation]: https://img.shields.io/readthedocs/hashed-env "Documentation"
[review_action]: https://img.shields.io/github/actions/workflow/status/JoelLefkowitz/hashed-env/review.yml "Review action"
[codacy_quality]: https://img.shields.io/codacy/grade/14dda3ed73cc47cca315d9582ce93fb7 "Codacy quality"
[codacy_coverage]: https://img.shields.io/codacy/coverage/14dda3ed73cc47cca315d9582ce93fb7 "Codacy coverage"
[npm_version]: https://img.shields.io/npm/v/hashed-env "NPM Version"
[npm_downloads]: https://img.shields.io/npm/dw/hashed-env "NPM Downloads"
[open_issues]: https://img.shields.io/github/issues/joellefkowitz/hashed-env "Open issues"
[closed_issues]: https://img.shields.io/github/issues-closed/joellefkowitz/hashed-env "Closed issues"
[open_pulls]: https://img.shields.io/github/issues-pr/joellefkowitz/hashed-env "Open pull requests"
[closed_pulls]: https://img.shields.io/github/issues-pr-closed/joellefkowitz/hashed-env "Closed pull requests"
[contributors]: https://img.shields.io/github/contributors/joellefkowitz/hashed-env "Contributors"
[monthly_commits]: https://img.shields.io/github/commit-activity/m/joellefkowitz/hashed-env "Monthly commits"
[last_commit]: https://img.shields.io/github/last-commit/joellefkowitz/hashed-env "Last commit"

---
_Source: https://npm.io/package/hashed-env · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
