String manipulation utilities — case conversion, base64 encoding, character counting, and template builders.
npm install @arki/string
# or
bun add @arki/string
# or
pnpm add @arki/stringimport { base64 } from '@arki/string/base64';
const encoded = base64.encode('hello');
const decoded = base64.decode(encoded);
// URL-safe variant (RFC 4648)
const urlEncoded = base64.urlEncode('hello?world=1');
const urlDecoded = base64.urlDecode(urlEncoded);import { countCharacters } from '@arki/string/count-characters';
countCharacters('hello'); // 5
countCharacters(); // 0import { camelCase, snakeCase, pascalCase } from '@arki/string/utils';Re-exports the case-conversion helpers from @poppinss/utils/string.
import { StringBuilder } from '@arki/string/builder';Re-exports the string-template builder from @poppinss/utils/string_builder.
The root entry re-exports everything for convenience:
import { base64, countCharacters, camelCase } from '@arki/string';@arki/string is framework-agnostic and works on its own. When you compose
it with the @arki/dot
application framework, see packages/dot/docs/ for plugin authoring,
lifecycle, and diagnostics.
MIT. See LICENSE.