Просмотр исходного кода

chore: updates README.md and README-ru.md

e22m4u 1 год назад
Родитель
Сommit
fa9b029b21
3 измененных файлов с 9 добавлено и 9 удалено
  1. 4 4
      README-ru.md
  2. 4 4
      README.md
  3. 1 1
      package.json

+ 4 - 4
README-ru.md

@@ -2,11 +2,11 @@
 
 *[English](README.md) | Русский*
 
-ES-модуль расширенной версии утилиты `format` для Node.js
+Утилита интерполяции строк для JavaScript.
 
-- стандартные спецификаторы `%s`, `%d` и `%j`
-- добавлен `%v` для вывода примитивных значений и имен конструктора
-- добавлен `%l` для вывода списка через запятую `"foo", 10, true`
+- стандартные спецификаторы `%s`, `%d` и `%j` (см. [`util.format`](https://nodejs.org/api/util.html#utilformatformat-args))
+- `%v` вывод примитивного значения или имени конструктора
+- `%l` вывод элементов массива через запятую `"foo", 10, true`
 
 Дополнительно:
 - встроенный класс `Errorf` с интерполяцией сообщения об ошибке

+ 4 - 4
README.md

@@ -2,11 +2,11 @@
 
 *English | [Русский](README-ru.md)*
 
-Extended version of the `format` utility for Node.js
+The string interpolation utility for JavaScript.
 
-- standard specifiers `%s`, `%d`, and `%j`
-- added `%v` for outputting primitive values and constructor names
-- added `%l` for outputting a comma-separated list `"foo", 10, true`
+- standard specifiers `%s`, `%d`, and `%j` (see [`util.format`](https://nodejs.org/api/util.html#utilformatformat-args))
+- `%v` outputs primitive value or constructor name
+- `%l` outputs an array as a comma-separated list `"foo", 10, true`
 
 Additionally:
 - built-in `Errorf` class with error message interpolation

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "@e22m4u/js-format",
   "version": "0.1.1",
-  "description": "Extended version of the format utility for Node.js",
+  "description": "The string interpolation utility for JavaScript",
   "type": "module",
   "main": "src/index.js",
   "scripts": {