@gridal/f-gridalyutils
v0.1.2
Published
The purpose of this package is to keep repetitive functions together in one place. It should only contain pure functions or logic that can be separated and have high chance to be used across other applications.
Downloads
471
Readme
GridalyUtils
The purpose of this package is to keep repetitive functions together in one place. It should only contain pure functions or logic that can be separated and have high chance to be used across other applications.
Because this package will be used by different projects in different stacks (react, react-native) by any means it should not have any relations to html elements or react-native components, it' should ONLY have logic! (With only exception that such elements are returned as strings)
Helpers
parseMarkdownString('String with [link](https://gridaly.com)');
getSocialMediaIcon('facebook | github | instagram | linkedin | pinterest | skype | twitter | vimeo | tiktok | youtube');
getFlagIcon('pl | PL');
getFileTypeIcon(
'ai | avi | doc | gif | jpg | mkv | mp3 | pdf | png | ppt | psd | rar | svg | txt | ww | xls | zip | image | music | video | website',
);
getFlagIcon(1024, 2);
Development
npm install
npm start # or yarn start
cd example
npm install
npm start # or yarn s tart