1.2.117 • Published 1 year ago

intraactive-sdk-helper v1.2.117

Weekly downloads
333
License
MIT
Repository
-
Last release
1 year ago

IntraActive Framework - Utility functions

IntraActive Framework's "Utility functions" package is a collection af convenient js functions used for web development in Sharepoint Modern

Installation

$ npm install intraactive-framework-utilityfunctions

Import

import { UtilityFunctions } from 'intraactive-framework-utilityfunctions'

Usage

UtilityFunctions.getSiteCollectionUrl(): string

Returning a string value like "https://domain.sharepoint.com/sites/intranet"

UtilityFunctions.getSiteCollection(): string

Returning a string value like "intranet"

UtilityFunctions.getCurrentAbsoluteSiteUrl(): string

Returning a string value like "https://domain.sharepoint.com/sites/intranet/subsite/Pages/Home.aspx"

UtilityFunctions.getWebServerRelativeUrl(): string

Returning a string value like "/sites/intranet"

UtilityFunctions.getLayoutsPageUrl(libraryName: string): string

Eg. UtilityFunctions.getLayoutsPageUrl('sp.js') Returning a string value like "/sites/intranet/_layouts/15/sp.js"

UtilityFunctions.getAbsoluteDomainUrl(): string

Returning a string value like "https://domain.sharepoint.com"

UtilityFunctions.hexToRgb(hex: string): { r: number; b: number; g: number }

Returns the RGB value of a hex-color

UtilityFunctions.textColorBasedOnBackgroundColorDarkness(backgroundColor: string, lightReturnColor: string, darkReturnColor: string): string

Returns the light or dark color based om darkness of background color

UtilityFunctions.getRandomStringKey(): string

Returning a random string value

UtilityFunctions.getYouTubeThumbnailFromURL(url: string): string

Returning the thumpnail image of a valid YouTube URL

UtilityFunctions.getTime(date: Date): string

Returning the time as a string 'mm:ss'

1.2.117

1 year ago

1.2.114

1 year ago

1.2.116

1 year ago

1.2.115

1 year ago

1.2.112

2 years ago

1.2.113

2 years ago

1.2.111

2 years ago

1.2.110

2 years ago

1.2.109

2 years ago

1.2.108

2 years ago

1.2.99

2 years ago

1.2.101

2 years ago

1.2.100

2 years ago

1.2.103

2 years ago

1.2.102

2 years ago

1.2.105

2 years ago

1.2.104

2 years ago

1.2.107

2 years ago

1.2.106

2 years ago

1.2.92

2 years ago

1.2.93

2 years ago

1.2.90

2 years ago

1.2.91

2 years ago

1.2.96

2 years ago

1.2.97

2 years ago

1.2.94

2 years ago

1.2.95

2 years ago

1.2.98

2 years ago

1.2.81

2 years ago

1.2.82

2 years ago

1.2.80

2 years ago

1.2.85

2 years ago

1.2.86

2 years ago

1.2.83

2 years ago

1.2.84

2 years ago

1.2.89

2 years ago

1.2.87

2 years ago

1.2.88

2 years ago

1.2.60

2 years ago

1.2.63

2 years ago

1.2.64

2 years ago

1.2.61

2 years ago

1.2.62

2 years ago

1.2.67

2 years ago

1.2.68

2 years ago

1.2.65

2 years ago

1.2.66

2 years ago

1.2.69

2 years ago

1.2.70

2 years ago

1.2.71

2 years ago

1.2.74

2 years ago

1.2.75

2 years ago

1.2.72

2 years ago

1.2.73

2 years ago

1.2.78

2 years ago

1.2.79

2 years ago

1.2.76

2 years ago

1.2.77

2 years ago

1.2.53

2 years ago

1.2.56

2 years ago

1.2.57

2 years ago

1.2.54

2 years ago

1.2.55

2 years ago

1.2.58

2 years ago

1.2.59

2 years ago

1.2.52

2 years ago

1.2.50

2 years ago

1.2.51

2 years ago

1.2.49

2 years ago

1.2.48

2 years ago

1.2.47

3 years ago

1.2.46

3 years ago

1.2.45

4 years ago

1.2.44

4 years ago

1.2.41

4 years ago

1.2.42

4 years ago

1.2.43

4 years ago

1.2.40

4 years ago

1.2.38

4 years ago

1.2.39

4 years ago

1.2.37

4 years ago

1.2.35

4 years ago

1.2.36

4 years ago

1.2.34

5 years ago

1.2.32

5 years ago

1.2.33

5 years ago

1.2.31

5 years ago

1.2.30

5 years ago

1.2.29

5 years ago

1.2.28

5 years ago

1.2.27

5 years ago

1.2.25

5 years ago

1.2.26

5 years ago

1.2.24

5 years ago

1.2.23

5 years ago

1.2.22

5 years ago

1.2.20

5 years ago

1.2.21

5 years ago

1.2.19

5 years ago

1.2.18

5 years ago

1.2.17

5 years ago

1.2.16

5 years ago

1.2.15

5 years ago

1.2.14

5 years ago

1.2.13

5 years ago

1.2.12

5 years ago

1.2.11

5 years ago

1.2.10

5 years ago

1.2.1908280845

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago