{"id":42202,"library":"ustring","title":"ustring","description":"ustring is a lightweight string utility library providing common string operations such as toLowerFirst, toUpperFirst, hyphenate, humanize, camelize, endsWith, and validation helpers like is.alphanum and is.match. Current stable version is 1.4.1, with no active development (last release in 2017). It uses a simple CommonJS export pattern and has no dependencies. Alternative libraries include lodash and ramda, but ustring is smaller and more focused on string manipulation.","status":"maintenance","version":"1.4.1","language":"javascript","source_language":"en","source_url":"git://github.com/radubrehar/ustring","tags":["javascript","string","utils","toupperfirst","utility"],"install":[{"cmd":"npm install ustring","lang":"bash","label":"npm"},{"cmd":"yarn add ustring","lang":"bash","label":"yarn"},{"cmd":"pnpm add ustring","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The library is CommonJS-only; ESM import may fail without a bundler or Node's --experimental-require-module.","wrong":"import ustring from 'ustring'","symbol":"ustring","correct":"const ustring = require('ustring')"},{"note":"function name is toUpperFirst, not toUpperFirstFirst (typo in readme).","wrong":"ustring.toUpperFirstFirst('abc')","symbol":"toUpperFirst","correct":"ustring.toUpperFirst('abc')"},{"note":"Nested property under 'is' object.","wrong":"ustring.isAlphanum('abc123')","symbol":"is.alphanum","correct":"ustring.is.alphanum('abc123')"}],"quickstart":{"code":"const ustring = require('ustring');\nconsole.log(ustring.toUpperFirst('hello')); // 'Hello'\nconsole.log(ustring.hyphenate('camelCase')); // 'camel-case'\nconsole.log(ustring.camelize('hello-world')); // 'helloWorld'\nconsole.log(ustring.endsWith('hello world', 'world')); // true\nconsole.log(ustring.is.alphanum('test123')); // true","lang":"javascript","description":"Shows basic string transformations: toUpperFirst, hyphenate, camelize, endsWith, and alphanumeric check."},"warnings":[{"fix":"Use ustring.toUpperFirst instead.","message":"The function toUpperFirstFirst is a typo in the readme; should be toUpperFirst.","severity":"gotcha","affected_versions":"<=1.4.1"},{"fix":"Ensure arguments are strings if strict type checking is needed.","message":"endsWith converts arguments to string; works with numbers but may cause unexpected coercion.","severity":"gotcha","affected_versions":"<=1.4.1"},{"fix":"Do not rely on ustring.is.email; use a dedicated email validator.","message":"is.email is mentioned in readme as commented-out; not available in the library.","severity":"gotcha","affected_versions":"<=1.4.1"}],"env_vars":null,"search_vec":"'1.4.1':32 '2017':40 'activ':35 'altern':52 'camel':19 'common':10 'commonj':45 'current':28 'depend':51 'develop':36 'endswith':20 'export':46 'focus':64 'helper':23 'human':18 'hyphen':17 'includ':54 'is.alphanum':25 'is.match':27 'javascript':68 'last':37 'librari':8,53 'lightweight':5 'like':24 'lodash':55 'manipul':67 'oper':12 'pattern':47 'provid':9 'ramda':57 'releas':38 'simpl':44 'smaller':61 'stabl':29 'string':6,11,66,69 'tolowerfirst':15 'toupperfirst':16,71 'use':42 'ustr':1,2,59 'util':7,70,72 'valid':22 'version':30","created_at":"2026-06-04T18:56:06.980680+00:00","updated_at":"2026-06-04T18:56:06.980680+00:00","problems":[{"fix":"Use ustring.toUpperFirst('abc')","cause":"Typo in readme: function name is toUpperFirst not toUpperFirstFirst.","error":"TypeError: ustring.toUpperFirstFirst is not a function"},{"fix":"Run 'npm install ustring' and ensure require path is correct.","cause":"Missing npm install or incorrect module path.","error":"Cannot find module 'ustring'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"git://github.com/radubrehar/ustring","github":"git://github.com/radubrehar/ustring","docs":null,"changelog":null,"pypi":null,"npm":"ustring","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}