deverything
Advanced tools
Comparing version 0.3.1 to 0.4.1
@@ -67,2 +67,9 @@ declare const array: <U extends (...args: any) => any>(length: number, mapFn: U) => ReturnType<U>[]; | ||
declare const isNumber: (arg: any) => boolean; | ||
declare const isInt: (arg: number) => boolean; | ||
declare const isEven: (arg: number) => boolean; | ||
declare const isOdd: (arg: number) => boolean; | ||
declare const isPositive: (arg: number) => boolean; | ||
declare const isNegative: (arg: number) => boolean; | ||
declare const isObject: (arg: any) => boolean; | ||
@@ -74,2 +81,2 @@ | ||
export { DateLike, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, array, capitalize, first, isArray, isBrowser, isClient, isEmpty, isJsDate, isObject, isServer, isStringDate, last, moveToFirst, moveToLast, parseDate, randomAddress, randomArrayItem, randomBool, randomDate, randomEmail, randomFile, randomFirstName, randomFullName, randomFutureDate, randomHandle, randomInt, randomLastName, randomName, randomParagraph, randomPastDate, randomWord }; | ||
export { DateLike, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, array, capitalize, first, isArray, isBrowser, isClient, isEmpty, isEven, isInt, isJsDate, isNegative, isNumber, isObject, isOdd, isPositive, isServer, isStringDate, last, moveToFirst, moveToLast, parseDate, randomAddress, randomArrayItem, randomBool, randomDate, randomEmail, randomFile, randomFirstName, randomFullName, randomFutureDate, randomHandle, randomInt, randomLastName, randomName, randomParagraph, randomPastDate, randomWord }; |
@@ -1,2 +0,2 @@ | ||
"use strict";(()=>{var d=(t,o)=>Array.from({length:t},o);var l=t=>t.charAt(0).toUpperCase()+t.slice(1);var $=t=>t==null?void 0:t[0];var H=t=>t==null?void 0:t[t.length-1];var q=(t,o)=>{let e=[...t];for(let n=0;n<e.length;n++)if(o(e[n],n,e)){let p=e.splice(n,1);e.unshift(p[0]);break}return e};var Y=(t,o)=>{let e=[...t];for(let n=0;n<e.length;n++)if(o(e[n],n,e)){let p=e.splice(n,1)[0];e.push(p);break}return e};var A=t=>Array.isArray(t);var y=t=>Object.prototype.toString.call(t)==="[object Object]";var u=t=>y(t)?Object.keys(t).length===0:A(t)?t.length===0:t==null||t==="";var i=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var mt=t=>{if(u(t))return;let o=new Date(t);if(i(o))return o};var h=[{city:"London",country:"United Kingdom",street:"Baker Street",number:"221B",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",street:"Bordesley Street",number:"B1 1AA",zip:"B1 1AA"}],L=[{city:"New York",country:"United States",street:"Broadway",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],R=[{city:"Paris",country:"France",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",street:"Unter den Linden",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",street:"Gran V\xEDa",number:"28013",zip:"28013"}],w=[{city:"Moscow",country:"Russia",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",street:"Shinjuku",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",street:"George",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],b=[...h,...L,...R,...w];var a=(t=Number.MIN_VALUE,o=Number.MAX_VALUE)=>Math.floor(Math.random()*(o-t+1)+t);var r=t=>t[a(0,t.length-1)];var ut=()=>r(b);var xt=()=>!!a(0,1);var S=(t,o)=>{let e=t||new Date(-864e13),n=o||new Date(864e13);return new Date(e.getTime()+Math.random()*(n.getTime()-e.getTime()))},Tt=t=>S(new Date(new Date().getTime()+5*6e4),t),Et=t=>S(t,new Date);var x=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","sbcglobal.net","verizon.net","att.net","mac.com","me.com","earthlink.net","cox.net","optonline.net","charter.net","shaw.ca","yahoo.ca","googlemail.com","mail.com","qq.com","web.de","gmx.de","mail.ru"];var f=["Aardvark","Albatross","Alligator","Alpaca","Ant","Anteater","Antelope","Ape"],T=["Axe","Ball Peen Hammer","Band Saw","Bench Grinder","Biscuit Joiner","Bolt Cutter","Boring Machine","Bow Saw"],m=["Abigail","Adam","Adrian","Agnes","Alan","Albert","Alexander","Alice","Amanda","Amelia","Amy","Andrew"],s=["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White"],z=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u0433\u043D\u0435\u0441","\u0410\u043B\u0430\u043D","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],C=["\u0421\u043C\u0438\u0442","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0423\u0438\u043B\u044C\u044F\u043C\u0441","\u0414\u0436\u043E\u043D\u0441","\u0411\u0440\u0430\u0443\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u0412\u0438\u043B\u0441\u043E\u043D","\u041C\u0443\u0440","\u0422\u0435\u0439\u043B\u043E\u0440","\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0422\u043E\u043C\u0430\u0441","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0423\u0430\u0439\u0442"],O=["\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30B0\u30CD\u30B9","\u30A2\u30E9\u30F3","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30EA\u30B9","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30DF\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],F=["\u30B9\u30DF\u30B9","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30D6\u30E9\u30A6\u30F3","\u30C7\u30A4\u30D3\u30B9","\u30DF\u30E9\u30FC","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30E2\u30A2","\u30BF\u30A4\u30E9\u30FC","\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30C8\u30FC\u30DE\u30B9","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30DB\u30EF\u30A4\u30C8"],U=["\u0623\u0628\u064A\u062C\u064A\u0644","\u0622\u062F\u0645","\u0622\u062F\u0631\u064A\u0627\u0646","\u0623\u063A\u0646\u064A\u0633","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A\u0644\u064A\u0627","\u0622\u0645\u064A","\u0623\u0646\u062F\u0631\u0648"],j=["\u0633\u0645\u064A\u062B","\u062C\u0648\u0646\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632","\u062C\u0648\u0646\u0632","\u0628\u0631\u0627\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0645\u064A\u0644\u0631","\u0648\u064A\u0644\u0633\u0648\u0646","\u0645\u0648\u0631","\u062A\u0627\u064A\u0644\u0648\u0631","\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u0648\u0627\u064A\u062A"],E=[...m,...z,...O,...U],D=[...s,...C,...F,...j];var ht=()=>r([...f,...T]),Lt=()=>r(E),Rt=()=>r(D),wt=()=>r(m)+" "+r(s),M=()=>(r(m)+"."+r(s)).toLowerCase()+a(11,99);var Ft=()=>`${M()}@${r(x)}`;var v=["abide","abound","accept","accomplish","achieve","acquire","act","adapt","add","address","adjust","admire","admit","adopt","advance","advise","afford","agree","alert","allow"],k=["abandon","ability","able","abortion","about","above","abroad","absence","absent","absolute"],J=["abandoned","abdominal","ability","able","abnormal","abolish","abortion","about","above","abroad","absence","absent","absolute"];var g=[...v,...k,...J];var c=()=>r(g);var N=()=>l(d(8,()=>c()).join(" "))+".";var P=["png","jpg","jpeg","gif","svg","webp"],qt=({name:t,extension:o}={})=>{if(typeof File>"u")return;let e=o||r(P);return new File([N()],`${t||c()}.${e}`,{type:`image/${e}`})};var I=()=>typeof window>"u";var _=()=>!I();var ee=_;var ne=t=>{let o=new Date(t);return i(o)};})(); | ||
"use strict";(()=>{var d=(t,o)=>Array.from({length:t},o);var u=t=>t.charAt(0).toUpperCase()+t.slice(1);var q=t=>t==null?void 0:t[0];var K=t=>t==null?void 0:t[t.length-1];var Q=(t,o)=>{let e=[...t];for(let n=0;n<e.length;n++)if(o(e[n],n,e)){let l=e.splice(n,1);e.unshift(l[0]);break}return e};var tt=(t,o)=>{let e=[...t];for(let n=0;n<e.length;n++)if(o(e[n],n,e)){let l=e.splice(n,1)[0];e.push(l);break}return e};var A=t=>Array.isArray(t);var y=t=>Object.prototype.toString.call(t)==="[object Object]";var b=t=>y(t)?Object.keys(t).length===0:A(t)?t.length===0:t==null||t==="";var a=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var pt=t=>{if(b(t))return;let o=new Date(t);if(a(o))return o};var w=[{city:"London",country:"United Kingdom",street:"Baker Street",number:"221B",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",street:"Bordesley Street",number:"B1 1AA",zip:"B1 1AA"}],R=[{city:"New York",country:"United States",street:"Broadway",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],L=[{city:"Paris",country:"France",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",street:"Unter den Linden",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",street:"Gran V\xEDa",number:"28013",zip:"28013"}],B=[{city:"Moscow",country:"Russia",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",street:"Shinjuku",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",street:"George",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],S=[...w,...R,...L,...B];var i=(t=Number.MIN_VALUE,o=Number.MAX_VALUE)=>Math.floor(Math.random()*(o-t+1)+t);var r=t=>t[i(0,t.length-1)];var xt=()=>r(S);var Tt=()=>!!i(0,1);var x=(t,o)=>{let e=t||new Date(-864e13),n=o||new Date(864e13);return new Date(e.getTime()+Math.random()*(n.getTime()-e.getTime()))},ht=t=>x(new Date(new Date().getTime()+5*6e4),t),gt=t=>x(t,new Date);var f=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","sbcglobal.net","verizon.net","att.net","mac.com","me.com","earthlink.net","cox.net","optonline.net","charter.net","shaw.ca","yahoo.ca","googlemail.com","mail.com","qq.com","web.de","gmx.de","mail.ru"];var E=["Aardvark","Albatross","Alligator","Alpaca","Ant","Anteater","Antelope","Ape"],T=["Axe","Ball Peen Hammer","Band Saw","Bench Grinder","Biscuit Joiner","Bolt Cutter","Boring Machine","Bow Saw"],s=["Abigail","Adam","Adrian","Agnes","Alan","Albert","Alexander","Alice","Amanda","Amelia","Amy","Andrew"],m=["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White"],z=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u0433\u043D\u0435\u0441","\u0410\u043B\u0430\u043D","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],O=["\u0421\u043C\u0438\u0442","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0423\u0438\u043B\u044C\u044F\u043C\u0441","\u0414\u0436\u043E\u043D\u0441","\u0411\u0440\u0430\u0443\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u0412\u0438\u043B\u0441\u043E\u043D","\u041C\u0443\u0440","\u0422\u0435\u0439\u043B\u043E\u0440","\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0422\u043E\u043C\u0430\u0441","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0423\u0430\u0439\u0442"],C=["\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30B0\u30CD\u30B9","\u30A2\u30E9\u30F3","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30EA\u30B9","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30DF\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],F=["\u30B9\u30DF\u30B9","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30D6\u30E9\u30A6\u30F3","\u30C7\u30A4\u30D3\u30B9","\u30DF\u30E9\u30FC","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30E2\u30A2","\u30BF\u30A4\u30E9\u30FC","\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30C8\u30FC\u30DE\u30B9","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30DB\u30EF\u30A4\u30C8"],k=["\u0623\u0628\u064A\u062C\u064A\u0644","\u0622\u062F\u0645","\u0622\u062F\u0631\u064A\u0627\u0646","\u0623\u063A\u0646\u064A\u0633","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A\u0644\u064A\u0627","\u0622\u0645\u064A","\u0623\u0646\u062F\u0631\u0648"],U=["\u0633\u0645\u064A\u062B","\u062C\u0648\u0646\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632","\u062C\u0648\u0646\u0632","\u0628\u0631\u0627\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0645\u064A\u0644\u0631","\u0648\u064A\u0644\u0633\u0648\u0646","\u0645\u0648\u0631","\u062A\u0627\u064A\u0644\u0648\u0631","\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u0648\u0627\u064A\u062A"],D=[...s,...z,...C,...k],h=[...m,...O,...F,...U];var Lt=()=>r([...E,...T]),Bt=()=>r(D),vt=()=>r(h),zt=()=>r(s)+" "+r(m),g=()=>(r(s)+"."+r(m)).toLowerCase()+i(11,99);var Ut=()=>`${g()}@${r(f)}`;var j=["abide","abound","accept","accomplish","achieve","acquire","act","adapt","add","address","adjust","admire","admit","adopt","advance","advise","afford","agree","alert","allow"],J=["abandon","ability","able","abortion","about","above","abroad","absence","absent","absolute"],P=["abandoned","abdominal","ability","able","abnormal","abolish","abortion","about","above","abroad","absence","absent","absolute"],W=["abnormally","aboard","absentmindedly","absolutely","absurdly","abundantly","abysmally","academically","acceleratedly","accentually","acceptably","accessibly","accidentally","accommodatingly"],V=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var N=[...j,...J,...P,...W,...V];var c=()=>r(N);var M=()=>u(d(8,()=>c()).join(" "))+".";var H=["png","jpg","jpeg","gif","svg","webp"],Qt=({name:t,extension:o}={})=>{if(typeof File>"u")return;let e=o||r(H);return new File([M()],`${t||c()}.${e}`,{type:`image/${e}`})};var I=()=>typeof window>"u";var _=()=>!I();var ne=_;var ae=t=>typeof t=="number"&&isFinite(t),p=t=>Number.isInteger(t),se=t=>p(t)&&!(t%2),me=t=>p(t)&&!!(t%2),ce=t=>p(t)&&t>0,pe=t=>p(t)&&t<0;var ue=t=>{let o=new Date(t);return a(o)};})(); | ||
//# sourceMappingURL=index.global.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var d=(t,o)=>Array.from({length:t},o);var l=t=>t.charAt(0).toUpperCase()+t.slice(1);var $=t=>t==null?void 0:t[0];var H=t=>t==null?void 0:t[t.length-1];var q=(t,o)=>{let e=[...t];for(let n=0;n<e.length;n++)if(o(e[n],n,e)){let p=e.splice(n,1);e.unshift(p[0]);break}return e};var Y=(t,o)=>{let e=[...t];for(let n=0;n<e.length;n++)if(o(e[n],n,e)){let p=e.splice(n,1)[0];e.push(p);break}return e};var A=t=>Array.isArray(t);var y=t=>Object.prototype.toString.call(t)==="[object Object]";var u=t=>y(t)?Object.keys(t).length===0:A(t)?t.length===0:t==null||t==="";var i=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var mt=t=>{if(u(t))return;let o=new Date(t);if(i(o))return o};var h=[{city:"London",country:"United Kingdom",street:"Baker Street",number:"221B",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",street:"Bordesley Street",number:"B1 1AA",zip:"B1 1AA"}],L=[{city:"New York",country:"United States",street:"Broadway",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],R=[{city:"Paris",country:"France",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",street:"Unter den Linden",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",street:"Gran V\xEDa",number:"28013",zip:"28013"}],w=[{city:"Moscow",country:"Russia",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",street:"Shinjuku",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",street:"George",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],b=[...h,...L,...R,...w];var a=(t=Number.MIN_VALUE,o=Number.MAX_VALUE)=>Math.floor(Math.random()*(o-t+1)+t);var r=t=>t[a(0,t.length-1)];var ut=()=>r(b);var xt=()=>!!a(0,1);var S=(t,o)=>{let e=t||new Date(-864e13),n=o||new Date(864e13);return new Date(e.getTime()+Math.random()*(n.getTime()-e.getTime()))},Tt= exports.randomFutureDate =t=>S(new Date(new Date().getTime()+5*6e4),t),Et= exports.randomPastDate =t=>S(t,new Date);var x=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","sbcglobal.net","verizon.net","att.net","mac.com","me.com","earthlink.net","cox.net","optonline.net","charter.net","shaw.ca","yahoo.ca","googlemail.com","mail.com","qq.com","web.de","gmx.de","mail.ru"];var f=["Aardvark","Albatross","Alligator","Alpaca","Ant","Anteater","Antelope","Ape"],T=["Axe","Ball Peen Hammer","Band Saw","Bench Grinder","Biscuit Joiner","Bolt Cutter","Boring Machine","Bow Saw"],m=["Abigail","Adam","Adrian","Agnes","Alan","Albert","Alexander","Alice","Amanda","Amelia","Amy","Andrew"],s=["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White"],z=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u0433\u043D\u0435\u0441","\u0410\u043B\u0430\u043D","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],C=["\u0421\u043C\u0438\u0442","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0423\u0438\u043B\u044C\u044F\u043C\u0441","\u0414\u0436\u043E\u043D\u0441","\u0411\u0440\u0430\u0443\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u0412\u0438\u043B\u0441\u043E\u043D","\u041C\u0443\u0440","\u0422\u0435\u0439\u043B\u043E\u0440","\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0422\u043E\u043C\u0430\u0441","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0423\u0430\u0439\u0442"],O=["\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30B0\u30CD\u30B9","\u30A2\u30E9\u30F3","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30EA\u30B9","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30DF\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],F=["\u30B9\u30DF\u30B9","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30D6\u30E9\u30A6\u30F3","\u30C7\u30A4\u30D3\u30B9","\u30DF\u30E9\u30FC","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30E2\u30A2","\u30BF\u30A4\u30E9\u30FC","\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30C8\u30FC\u30DE\u30B9","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30DB\u30EF\u30A4\u30C8"],U=["\u0623\u0628\u064A\u062C\u064A\u0644","\u0622\u062F\u0645","\u0622\u062F\u0631\u064A\u0627\u0646","\u0623\u063A\u0646\u064A\u0633","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A\u0644\u064A\u0627","\u0622\u0645\u064A","\u0623\u0646\u062F\u0631\u0648"],j=["\u0633\u0645\u064A\u062B","\u062C\u0648\u0646\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632","\u062C\u0648\u0646\u0632","\u0628\u0631\u0627\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0645\u064A\u0644\u0631","\u0648\u064A\u0644\u0633\u0648\u0646","\u0645\u0648\u0631","\u062A\u0627\u064A\u0644\u0648\u0631","\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u0648\u0627\u064A\u062A"],E=[...m,...z,...O,...U],D=[...s,...C,...F,...j];var ht=()=>r([...f,...T]),Lt= exports.randomFirstName =()=>r(E),Rt= exports.randomLastName =()=>r(D),wt= exports.randomFullName =()=>r(m)+" "+r(s),M= exports.randomHandle =()=>(r(m)+"."+r(s)).toLowerCase()+a(11,99);var Ft=()=>`${M()}@${r(x)}`;var v=["abide","abound","accept","accomplish","achieve","acquire","act","adapt","add","address","adjust","admire","admit","adopt","advance","advise","afford","agree","alert","allow"],k=["abandon","ability","able","abortion","about","above","abroad","absence","absent","absolute"],J=["abandoned","abdominal","ability","able","abnormal","abolish","abortion","about","above","abroad","absence","absent","absolute"];var g=[...v,...k,...J];var c=()=>r(g);var N=()=>l(d(8,()=>c()).join(" "))+".";var P=["png","jpg","jpeg","gif","svg","webp"],qt= exports.randomFile =({name:t,extension:o}={})=>{if(typeof File>"u")return;let e=o||r(P);return new File([N()],`${t||c()}.${e}`,{type:`image/${e}`})};var I=()=>typeof window>"u";var _=()=>!I();var ee=_;var ne=t=>{let o=new Date(t);return i(o)};exports.array = d; exports.capitalize = l; exports.first = $; exports.isArray = A; exports.isBrowser = ee; exports.isClient = _; exports.isEmpty = u; exports.isJsDate = i; exports.isObject = y; exports.isServer = I; exports.isStringDate = ne; exports.last = H; exports.moveToFirst = q; exports.moveToLast = Y; exports.parseDate = mt; exports.randomAddress = ut; exports.randomArrayItem = r; exports.randomBool = xt; exports.randomDate = S; exports.randomEmail = Ft; exports.randomFile = qt; exports.randomFirstName = Lt; exports.randomFullName = wt; exports.randomFutureDate = Tt; exports.randomHandle = M; exports.randomInt = a; exports.randomLastName = Rt; exports.randomName = ht; exports.randomParagraph = N; exports.randomPastDate = Et; exports.randomWord = c; | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var d=(t,o)=>Array.from({length:t},o);var u=t=>t.charAt(0).toUpperCase()+t.slice(1);var q=t=>t==null?void 0:t[0];var K=t=>t==null?void 0:t[t.length-1];var Q=(t,o)=>{let e=[...t];for(let n=0;n<e.length;n++)if(o(e[n],n,e)){let l=e.splice(n,1);e.unshift(l[0]);break}return e};var tt=(t,o)=>{let e=[...t];for(let n=0;n<e.length;n++)if(o(e[n],n,e)){let l=e.splice(n,1)[0];e.push(l);break}return e};var A=t=>Array.isArray(t);var y=t=>Object.prototype.toString.call(t)==="[object Object]";var b=t=>y(t)?Object.keys(t).length===0:A(t)?t.length===0:t==null||t==="";var a=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var pt=t=>{if(b(t))return;let o=new Date(t);if(a(o))return o};var w=[{city:"London",country:"United Kingdom",street:"Baker Street",number:"221B",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",street:"Bordesley Street",number:"B1 1AA",zip:"B1 1AA"}],R=[{city:"New York",country:"United States",street:"Broadway",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],L=[{city:"Paris",country:"France",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",street:"Unter den Linden",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",street:"Gran V\xEDa",number:"28013",zip:"28013"}],B=[{city:"Moscow",country:"Russia",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",street:"Shinjuku",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",street:"George",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],S=[...w,...R,...L,...B];var i=(t=Number.MIN_VALUE,o=Number.MAX_VALUE)=>Math.floor(Math.random()*(o-t+1)+t);var r=t=>t[i(0,t.length-1)];var xt=()=>r(S);var Tt=()=>!!i(0,1);var x=(t,o)=>{let e=t||new Date(-864e13),n=o||new Date(864e13);return new Date(e.getTime()+Math.random()*(n.getTime()-e.getTime()))},ht= exports.randomFutureDate =t=>x(new Date(new Date().getTime()+5*6e4),t),gt= exports.randomPastDate =t=>x(t,new Date);var f=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","sbcglobal.net","verizon.net","att.net","mac.com","me.com","earthlink.net","cox.net","optonline.net","charter.net","shaw.ca","yahoo.ca","googlemail.com","mail.com","qq.com","web.de","gmx.de","mail.ru"];var E=["Aardvark","Albatross","Alligator","Alpaca","Ant","Anteater","Antelope","Ape"],T=["Axe","Ball Peen Hammer","Band Saw","Bench Grinder","Biscuit Joiner","Bolt Cutter","Boring Machine","Bow Saw"],s=["Abigail","Adam","Adrian","Agnes","Alan","Albert","Alexander","Alice","Amanda","Amelia","Amy","Andrew"],m=["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White"],z=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u0433\u043D\u0435\u0441","\u0410\u043B\u0430\u043D","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],O=["\u0421\u043C\u0438\u0442","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0423\u0438\u043B\u044C\u044F\u043C\u0441","\u0414\u0436\u043E\u043D\u0441","\u0411\u0440\u0430\u0443\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u0412\u0438\u043B\u0441\u043E\u043D","\u041C\u0443\u0440","\u0422\u0435\u0439\u043B\u043E\u0440","\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0422\u043E\u043C\u0430\u0441","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0423\u0430\u0439\u0442"],C=["\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30B0\u30CD\u30B9","\u30A2\u30E9\u30F3","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30EA\u30B9","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30DF\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],F=["\u30B9\u30DF\u30B9","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30D6\u30E9\u30A6\u30F3","\u30C7\u30A4\u30D3\u30B9","\u30DF\u30E9\u30FC","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30E2\u30A2","\u30BF\u30A4\u30E9\u30FC","\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30C8\u30FC\u30DE\u30B9","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30DB\u30EF\u30A4\u30C8"],k=["\u0623\u0628\u064A\u062C\u064A\u0644","\u0622\u062F\u0645","\u0622\u062F\u0631\u064A\u0627\u0646","\u0623\u063A\u0646\u064A\u0633","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A\u0644\u064A\u0627","\u0622\u0645\u064A","\u0623\u0646\u062F\u0631\u0648"],U=["\u0633\u0645\u064A\u062B","\u062C\u0648\u0646\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632","\u062C\u0648\u0646\u0632","\u0628\u0631\u0627\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0645\u064A\u0644\u0631","\u0648\u064A\u0644\u0633\u0648\u0646","\u0645\u0648\u0631","\u062A\u0627\u064A\u0644\u0648\u0631","\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u0648\u0627\u064A\u062A"],D=[...s,...z,...C,...k],h=[...m,...O,...F,...U];var Lt=()=>r([...E,...T]),Bt= exports.randomFirstName =()=>r(D),vt= exports.randomLastName =()=>r(h),zt= exports.randomFullName =()=>r(s)+" "+r(m),g= exports.randomHandle =()=>(r(s)+"."+r(m)).toLowerCase()+i(11,99);var Ut=()=>`${g()}@${r(f)}`;var j=["abide","abound","accept","accomplish","achieve","acquire","act","adapt","add","address","adjust","admire","admit","adopt","advance","advise","afford","agree","alert","allow"],J=["abandon","ability","able","abortion","about","above","abroad","absence","absent","absolute"],P=["abandoned","abdominal","ability","able","abnormal","abolish","abortion","about","above","abroad","absence","absent","absolute"],W=["abnormally","aboard","absentmindedly","absolutely","absurdly","abundantly","abysmally","academically","acceleratedly","accentually","acceptably","accessibly","accidentally","accommodatingly"],V=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var N=[...j,...J,...P,...W,...V];var c=()=>r(N);var M=()=>u(d(8,()=>c()).join(" "))+".";var H=["png","jpg","jpeg","gif","svg","webp"],Qt= exports.randomFile =({name:t,extension:o}={})=>{if(typeof File>"u")return;let e=o||r(H);return new File([M()],`${t||c()}.${e}`,{type:`image/${e}`})};var I=()=>typeof window>"u";var _=()=>!I();var ne=_;var ae=t=>typeof t=="number"&&isFinite(t),p= exports.isInt =t=>Number.isInteger(t),se= exports.isEven =t=>p(t)&&!(t%2),me= exports.isOdd =t=>p(t)&&!!(t%2),ce= exports.isPositive =t=>p(t)&&t>0,pe= exports.isNegative =t=>p(t)&&t<0;var ue=t=>{let o=new Date(t);return a(o)};exports.array = d; exports.capitalize = u; exports.first = q; exports.isArray = A; exports.isBrowser = ne; exports.isClient = _; exports.isEmpty = b; exports.isEven = se; exports.isInt = p; exports.isJsDate = a; exports.isNegative = pe; exports.isNumber = ae; exports.isObject = y; exports.isOdd = me; exports.isPositive = ce; exports.isServer = I; exports.isStringDate = ue; exports.last = K; exports.moveToFirst = Q; exports.moveToLast = tt; exports.parseDate = pt; exports.randomAddress = xt; exports.randomArrayItem = r; exports.randomBool = Tt; exports.randomDate = x; exports.randomEmail = Ut; exports.randomFile = Qt; exports.randomFirstName = Bt; exports.randomFullName = zt; exports.randomFutureDate = ht; exports.randomHandle = g; exports.randomInt = i; exports.randomLastName = vt; exports.randomName = Lt; exports.randomParagraph = M; exports.randomPastDate = gt; exports.randomWord = c; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "deverything", | ||
"version": "0.3.1", | ||
"version": "0.4.1", | ||
"description": "Everything you need for Dev", | ||
@@ -36,2 +36,3 @@ "main": "dist/index.js", | ||
"@babel/preset-typescript": "^7.21.0", | ||
"@changesets/cli": "^2.26.0", | ||
"@jest/globals": "^29.4.3", | ||
@@ -47,5 +48,6 @@ "@types/jest": "^29.4.0", | ||
"build": "tsup", | ||
"ci:publish": "pnpm publish --no-git-checks", | ||
"clean": "rm -rf node_modules && rm -rf dist", | ||
"dev": "tsup --watch", | ||
"lint": "TIMING=1 eslint src --fix", | ||
"clean": "rm -rf node_modules && rm -rf dist", | ||
"prepublish": "pnpm test && pnpm build", | ||
@@ -52,0 +54,0 @@ "test": "jest" |
@@ -7,4 +7,4 @@ # DEVerything | ||
- **1️⃣ package**: say goodbye to lodash, faker, this and that and the other package. | ||
- **0️⃣ dependencies**: keep it simple and lightweight. | ||
- **1️⃣-package**: say goodbye to lodash, faker, this and that and the other package. | ||
- **0️⃣-dependencies**: keep it simple and lightweight. | ||
- **🏆 Pick the best**: the code is minimal and uses the best current practices and is optimized for max performance. | ||
@@ -24,2 +24,8 @@ - **👪🏼 Typescript**: use it, support it and export it. | ||
- `isJsDate()` if it's a **valid** javascript's Date | ||
- `isNumber()` if the arg is number, and also usable (no infinity) | ||
- `isInt()` | ||
- `isEven()` | ||
- `isOdd()` | ||
- `isPositive()` | ||
- `isNegative()` | ||
- `isObject()` if it's a js Object | ||
@@ -26,0 +32,0 @@ - `isServer()` if you are on the server |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
100802
147
68
11