Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

haraka-utils

haraka16kMIT1.1.4

Haraka general purpose functions

haraka, utility, utilities

readme

CI Coverage Status Code Climate

haraka-utils

General purpose haraka utilities.

Usage

const utils = require('haraka-utils')

getVersion (dir)

Gets the version of the NPM package located at dir. If the dir is a git repo, it also appends the commit ID.

utils.getVersion('.') // '1.1.2/45e3812'

See Also

changelog

Changelog

The format is based on Keep a Changelog.

Unreleased

1.1.4 - 2025-01-31

  • dep(eslint): upgrade to v9
  • style(prettier): move config into package.json

1.1.3 - 2024-04-23

  • doc(CONTRIBUTORS): added
  • feat: added getGitCommitId & getVersion

1.1.2 - 2024-04-07

  • doc(README): make haraka a link
  • dep: eslint-plugin-haraka -> @haraka/eslint-config
  • lint: update .eslintrc
  • chore: update package.json scripts
  • prettier

1.1.1 - 2024-04-05

  • doc(CHANGELOG): renamed from changes
  • package.json: include CHANGELOG in files

1.1.0 - 2024-04-05

  • import from bin/haraka: copyFile, copyDir, mkDir, createFile
  • add SUNSET 2025 warnings to unused qp functions

1.0.3 - 2022-05-27

  • chore(ci): update with shared GHA workflows
  • chore(ci): adjust codeclimate config
  • chore(test): added tests for date_to_str, in_array, indexOfLF
  • doc(README): fix badge URLs
  • style: replace indexOf with includes (es6)
  • style: replace for (i) with for..of
  • style: _pad uses str.padStart (avail since node 8)

1.0.2 - 2020-04-10

  • CI tests:
    • replaced defunct nodeunit with mocha
    • replace Travis/Appveyor with githut workflows
    • use eslint 6
  • uniq now works with unsorted lists
  • update Buffer syntax, related to haraka/Haraka#2374
  • es6 updates
  • lint: compat updates for nodejs 6
  • change names of 1024 base units to match IEC 80000-13:2008 standard #12

1.0.1 - 2017-06-16

  • depend on haraka-eslint
  • lint fixes for compat with eslint 4