flatten-string 0.0.1 → 0.1.0

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 ADDED
@@ -0,0 +1 @@
1
+ # flatten-string
package/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ declare const concatenateStrings:{(...items:Array<unknown>):string;with:(joiner:string,...items:Array<unknown>)=>string;lines(...items:Array<unknown>):string;paragraphs(...items:Array<unknown>):string;spaced(...items:Array<unknown>):string;colon(...items:Array<unknown>):string;comma(...items:Array<unknown>):string;list(...items:Array<unknown>):string;zero(...items:Array<unknown>):string;tab(...items:Array<unknown>):string;};export{concatenateStrings as default};
package/main.js ADDED
@@ -0,0 +1,8 @@
1
+ const t=(t,...o)=>{let e=""
2
+ const n=o=>{var c
3
+ if(o&&!0!==o&&(!["string","object"].includes(typeof(c=o))||!Object.hasOwn(c,"length")||c.length))if("object"!=typeof o)e.length&&(e+=t),e+=String(o)
4
+ else if((t=>"object"==typeof t&&"function"==typeof t[Symbol.iterator])(o))for(const t of o)n(t)}
5
+ for(const t of o)n(t)
6
+ return e},o=(...o)=>t("",o)
7
+ o.with=t,o.lines=(...o)=>t("\n",o),o.paragraphs=(...o)=>t("\n\n",o),o.spaced=(...o)=>t(" ",o),o.colon=(...o)=>t(":",o),o.comma=(...o)=>t(",",o),o.list=(...o)=>t(", ",o),o.zero=(...o)=>t("\0",o),o.tab=(...o)=>t("\t",o)
8
+ export{o as default}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"flatten-string","description":"returns `'flatten-string'`","version":"0.0.1","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js","default":"./index.js"}},"author":"Jaid <6216144+Jaid@users.noreply.github.com> (https://github.com/Jaid)","license":"MIT","repository":"github:Jaid/flatten-string"}
1
+ {"funding":"https://github.com/sponsors/Jaid","license":"MIT","name":"flatten-string","repository":{"type":"git","url":"git+https://github.com/Jaid/flatten-string.git"},"version":"0.1.0","type":"module","exports":{".":{"default":"./main.js","import":"./main.js","types":"./main.d.ts"}},"types":"./main.d.ts"}
package/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- declare module 'flatten-string' {
2
- /**
3
- * returns `'flatten-string'`
4
- */
5
- export default () => string
6
- }
package/index.js DELETED
@@ -1 +0,0 @@
1
- export default () => 'flatten-string'
package/readme.md DELETED
@@ -1 +0,0 @@
1
- # flatten-string
File without changes