hlp 3.3.2 → 3.3.4
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.
- package/README.md +4 -0
- package/_js/_build/script.js +2130 -2563
- package/hlp.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -425,6 +425,10 @@ hlp.ltrim('xxfoox', 'x') // 'foox'
|
|
|
425
425
|
hlp.rtrim(' foo ') // ' foo'
|
|
426
426
|
hlp.rtrim('xxfoox', 'x') // 'xxfoo'
|
|
427
427
|
|
|
428
|
+
// truncate/trim long strings
|
|
429
|
+
hlp.truncate_string('Lorem ipsum dolor sit amet, consectetuer.', 20); // Lorem ipsum dolor ...
|
|
430
|
+
hlp.truncate_string('Lorem ipsum dolor sit amet, consectetuer.', 20, '…'); // Lorem ipsum dolor …
|
|
431
|
+
|
|
428
432
|
// create lexicographically ordered string ids like in firebase
|
|
429
433
|
hlp.pushId() // -LDiDooGs9PyGHmghk5i
|
|
430
434
|
hlp.pushId() // -LDiDooGs9PyGHmghk5j
|