Javacript html entities, youtube image, string replace etc....
npm install @creatrix/common``js
yarn add @creatrix/common
OR
npm i @creatrix/common
`
`jsMichek&49;s
import {entity} from '@creatrix/common';
const mytitle=entity(); `
`jsMichek&49;s
import {entityReplace} from '@creatrix/common';
const mytitle=entityReplace(,'INTIAL STRING IF EMPTY');
const mytitle=entityReplace(,'INTIAL STRING IF EMPTY'); `
`js`
import {StringReplace} from '@creatrix/common';
const mytitle=StringReplace('hello %s','demo','%s');
`js`
import {mutliStringReplace} from '@creatrix/common';
const mytitle=mutliStringReplace({':rowid':'12',':filter':'none'},'/path/:rowid/:filter');
`js1
import {ArabicNumbers} from '@creatrix/common';
const mytitle=ArabicNumbers(); `
`jsWq3vimf
import {ImageYoutube} from '@creatrix/common';
const mytitle=ImageYoutube(); `
`jshttps://youtu.be/Wq3vimf
import {getYoutubeVideoID} from '@creatrix/common';
const mytitle=ArabicNumbers(); `
`jsHello Demo Word
import {FirstCharOfEachWord} from '@creatrix/common';
const mytitle=FirstCharOfEachWord(); `
`jsHello Demo Word
import {FirstChar} from '@creatrix/common';
const mytitle=FirstChar(); `
`js`
import {SizeMBToB} from '@creatrix/common';
const mytitle=SizeMBToB(1);
`js`
import {SizeBToMB} from '@creatrix/common';
const mytitle=SizeBToMB(1,048,576);
`js`
import {SizeKBToMB} from '@creatrix/common';
const mytitle=SizeKBToMB(1024);
`js`
import {spacetoDash} from '@creatrix/common';
const mytitle=spacetoDash("Hello Word");
`js`
import {GetValueKeyOfArray} from '@creatrix/common';
const FromArray=[{id:1,value:Hello},{id:2,value:Word}];
const fromKey='id';
const fromvalue='2';
const selectedkey='value';
const mytitle=GetValueKeyOfArray(FromArray,fromKey,fromvalue,selectedkey);
`js
import {AddKeyToObject2Steps} from '@creatrix/common';
const FromObject={pageurl:{url:'http',params:{title:'hello'}},otherdata:'demo'};
const mytitle=AddKeyToObject2Steps(FromObject,'pageurl','params',{newdata:'we are here'}); }},otherdata:'demo'} -->
``