@jdsalasc/solvejs-string 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -3
  2. package/package.json +51 -32
package/README.md CHANGED
@@ -1,3 +1,18 @@
1
- # @jdsalasc/solvejs-string
2
-
3
- String utilities for casing, trimming, and normalization.
1
+ # @jdsalasc/solvejs-string
2
+
3
+ String utilities for casing, formatting, and truncation.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm i @jdsalasc/solvejs-string
9
+ ```
10
+
11
+ ## Example
12
+
13
+ ```ts
14
+ import { toCamelCase, toKebabCase } from "@jdsalasc/solvejs-string";
15
+
16
+ toCamelCase("hello-world");
17
+ toKebabCase("Hello World");
18
+ ```
package/package.json CHANGED
@@ -1,33 +1,52 @@
1
- {
2
- "name": "@jdsalasc/solvejs-string",
3
- "version": "1.0.0",
4
- "description": "String utilities for casing, trimming, and normalization.",
5
- "license": "MIT",
6
- "type": "module",
7
- "sideEffects": false,
8
- "main": "./dist/cjs/index.cjs",
9
- "module": "./dist/esm/index.js",
10
- "types": "./dist/esm/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "types": "./dist/esm/index.d.ts",
14
- "import": "./dist/esm/index.js",
15
- "require": "./dist/cjs/index.cjs"
16
- }
17
- },
18
- "files": [
19
- "dist",
20
- "README.md"
21
- ],
22
- "scripts": {
23
- "build": "npm run clean && npm run build:esm && npm run build:cjs",
24
- "build:esm": "tsc -p tsconfig.esm.json",
25
- "build:cjs": "tsc -p tsconfig.cjs.json && node ./scripts/rename-cjs.mjs",
26
- "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
27
- "test": "npm run build && node --test test/*.test.mjs",
28
- "lint": "node -e \"console.log('No lint configured for @jdsalasc/solvejs-string')\""
29
- },
30
- "publishConfig": {
31
- "access": "public"
32
- }
1
+ {
2
+ "name": "@jdsalasc/solvejs-string",
3
+ "version": "1.0.1",
4
+ "description": "String utilities for casing, trimming, and normalization.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/cjs/index.cjs",
9
+ "module": "./dist/esm/index.js",
10
+ "types": "./dist/esm/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/esm/index.d.ts",
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.cjs"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "README.md"
21
+ ],
22
+ "scripts": {
23
+ "build": "npm run clean && npm run build:esm && npm run build:cjs",
24
+ "build:esm": "tsc -p tsconfig.esm.json",
25
+ "build:cjs": "tsc -p tsconfig.cjs.json && node ./scripts/rename-cjs.mjs",
26
+ "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
27
+ "test": "npm run build && node --test test/*.test.mjs",
28
+ "lint": "node -e \"console.log('No lint configured for @jdsalasc/solvejs-string')\""
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "author": "jdsalasc",
34
+ "homepage": "https://github.com/jdsalasca/solvejs#readme",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/jdsalasca/solvejs.git"
38
+ },
39
+ "bugs": {
40
+ "url": "https://github.com/jdsalasca/solvejs/issues"
41
+ },
42
+ "engines": {
43
+ "node": ">=18"
44
+ },
45
+ "keywords": [
46
+ "string utils",
47
+ "kebab case",
48
+ "camel case",
49
+ "typescript string",
50
+ "solvejs"
51
+ ]
33
52
  }