Installations
npm install @teamteanpm2024/tempore-non-vitae
Developer Guide
BETA
Typescript
No
Module System
CommonJS
Node Version
20.12.2
NPM Version
10.5.0
Score
50
Supply Chain
32.1
Quality
79.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Total Downloads
Cumulative downloads
Total Downloads
495
Last day
0%
1
Compared to previous day
Last week
50%
6
Compared to previous week
Last month
62.5%
26
Compared to previous month
Last year
0%
495
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
37
@libphamton/chatfanpage@libphamton/fb-group@oraliepham/api-chat-fanpage-facebook@oraliepham/api-facebooknew@teamteanpm2024/aperiam-dolor-aliquid@teamteanpm2024/aperiam-fugit-error@teamteanpm2024/aperiam-similique-soluta@teamteanpm2024/architecto-alias-quod@teamteanpm2024/asperiores-atque-fugit@teamteanpm2024/aut-voluptatum-vero@teamteanpm2024/beatae-aliquid-id@teamteanpm2024/commodi-illum-occaecati@teamteanpm2024/consequuntur-enim-dignissimos@teamteanpm2024/consequuntur-voluptates-quod@teamteanpm2024/debitis-iure-atque@teamteanpm2024/dolores-beatae-possimus@teamteanpm2024/earum-illum-veniam@teamteanpm2024/earum-ipsam-aspernatur@teamteanpm2024/effective-octo-computing-machine@teamteanpm2024/exercitationem-rem-magni@teamteanpm2024/expedita-labore-ipsum@teamteanpm2024/iste-sapiente-possimus@teamteanpm2024/laudantium-autem-pariatur@teamteanpm2024/legendary-meme@teamteanpm2024/non-tempora-perferendis@teamteanpm2024/nostrum-deleniti-fugit@teamteanpm2024/odio-fugiat-in@teamteanpm2024/odit-voluptatibus-nobis@teamteanpm2024/perspiciatis-a-unde@teamteanpm2024/saepe-in-beatae@teamteanpm2024/sit-optio-enim@teamteanpm2024/temporibus-distinctio-in@teamteanpm2024/voluptate-facere-ducimus@teamteanpm2024/voluptatibus-reprehenderit-oditapi-chat-fanpage-facebookapi-chatfbapi-chatfb-test
Versions
Social Links
Social Links is helping to detect, validate and sanitize social (desktop & mobile) links
Install
1npm i @teamteanpm2024/tempore-non-vitae --save
Demo
- https://awesome-web-tools.web.app/@teamteanpm2024/tempore-non-vitae - Example use case
- https://gkucmierz.github.io/@teamteanpm2024/tempore-non-vitae-app - Detect profile demo (v1.7.0)
Using
1import { SocialLinks, TYPE_MOBILE } from '@teamteanpm2024/tempore-non-vitae'; 2const socialLinks = new SocialLinks(); 3 4const link = 'http://www.linkedin.com/in/gkucmierz'; 5const profileName = socialLinks.detectProfile(link); // 'linkedin' 6 7console.log(socialLinks.isValid(profileName, link)); // true 8console.log(socialLinks.sanitize(profileName, link)); // 'https://linkedin.com/in/gkucmierz' 9console.log(socialLinks.sanitize(profileName, link, TYPE_MOBILE)); // 'https://linkedin.com/mwlite/in/gkucmierz'
Above examples works based on predefined linkedin profile:
1import { Profile } from '@teamteanpm2024/tempore-non-vitae'; 2const linkedinProfile: Profile = 3{ name: 'linkedin', 4 matches: [ 5 { 6 match: '(https?://)?(www.)?linkedin.com/in/({PROFILE_ID})', group: 3, type: TYPE_DESKTOP, 7 pattern: 'https://linkedin.com/in/{PROFILE_ID}' 8 }, 9 { 10 match: '(https?://)?(www.)?linkedin.com/mwlite/in/({PROFILE_ID})', group: 3, type: TYPE_MOBILE, 11 pattern: 'https://linkedin.com/mwlite/in/{PROFILE_ID}' 12 }, 13 { match: '({PROFILE_ID})', group: 1 }, 14 ] 15};
Add new profile
1import { SocialLinks, Profile } from '@teamteanpm2024/tempore-non-vitae'; 2 3const socialLinks = new SocialLinks(); 4const profileMatches: ProfileMatch[] = [ ... ]; 5 6socialLinks.addProfile('profileName', profileMatches);
Configuration
1import { SocialLinks, Config } from '@teamteanpm2024/tempore-non-vitae'; 2 3const config: Config = { 4 usePredefinedProfiles: true, 5 trimInput: true, 6 allowQueryParams: false, 7}; 8const socialLinks = new SocialLinks(config);
Build
Watch, tsc build
1npm run start
Tests
Just jest tests
1npm run test
or
1npm run test:watch
Contributing
No vulnerabilities found.
No security vulnerabilities found.