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

Package detail

codsen-utils

codsen430.3kMIT1.7.0TypeScript support: included

Various utility functions

codsen, utility, helpers

readme

codsen-utils

Various utility functions

page on codsen.com page on npm page on github Downloads per month changelog MIT Licence

Install

This package is pure ESM.

npm i codsen-utils

Quick Take

import { strict as assert } from "assert";

import { isNumberChar } from "codsen-utils";

assert.equal(isNumberChar("z"), false);
assert.equal(isNumberChar("0"), true);

Documentation

Please visit codsen.com for a full description of the API.

Contributing

To report bugs or request features or assistance, raise an issue on GitHub.

Licence

MIT License

Copyright © 2010-2025 Roy Revelt and other contributors

ok codsen star

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.7.0 (2025-10-15)

Features

  • if value to be added is a number, keep it as is, don't stringify (ce3e1a5)

1.6.0 (2023-05-21)

Features

  • add intersection() and omit() (d71f024)

1.5.0 (2023-05-13)

Bug Fixes

Features

  • add compareFn() to tackle @typescript-eslint/require-array-sort-compare lint rule (a25524a)
  • add includes() (c6cf14e)

1.4.0 (2023-04-16)

Features

  • add detectEol() (04d2f3d)
  • add resolveEolSetting() and type EolSetting (ceae282)

1.3.0 (2023-03-12)

Features

1.2.0 (2022-12-27)

Features

1.1.1 (2022-12-27)

Bug Fixes

  • add multiplication sign (a93a230)

1.1.0 (2022-12-26)

Features

1.0.1 (2022-12-22)

Bug Fixes