All Projects → jonathanpalma → Sivar Utils

jonathanpalma / Sivar Utils

Licence: mit
TS/JS utils para el desarrollo de sistemas salvadoreños 🇸🇻

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Sivar Utils

Xtoolkit.whitelabel
Modular MVVM framework for fast creating powerful cross-platform applications with Xamarin.
Stars: ✭ 22 (-12%)
Mutual labels:  hacktoberfest
Mergely
Merge and diff documents online
Stars: ✭ 918 (+3572%)
Mutual labels:  hacktoberfest
Knifecycle
Manage your NodeJS processes's lifecycle automatically with an unobtrusive dependency injection implementation.
Stars: ✭ 24 (-4%)
Mutual labels:  hacktoberfest
Meteor Roles
Authorization package for Meteor, compatible with built-in accounts packages
Stars: ✭ 916 (+3564%)
Mutual labels:  hacktoberfest
Dancer Plugin Auth Extensible
Authentication framework for Dancer-based web applications
Stars: ✭ 22 (-12%)
Mutual labels:  hacktoberfest
Adguardfilters
AdGuard Content Blocking Filters
Stars: ✭ 915 (+3560%)
Mutual labels:  hacktoberfest
Pavlos
A light-weight container runtime for Linux with NVIDIA gpu support, allows developers to quicky setup development environments for dev and test. Pavlos can emulate any Linux rootfs image as a container.
Stars: ✭ 22 (-12%)
Mutual labels:  hacktoberfest
Dlang
[MIRROR] D programming language ebuild repository
Stars: ✭ 24 (-4%)
Mutual labels:  hacktoberfest
Titanhide
Hiding kernel-driver for x86/x64.
Stars: ✭ 917 (+3568%)
Mutual labels:  hacktoberfest
Replayzero
Record local web traffic on your laptop and generate functional API tests, utilizing open source industry standards like Karate and Gatling
Stars: ✭ 24 (-4%)
Mutual labels:  hacktoberfest
Tenancy
Run multiple websites using the same Laravel installation while keeping tenant specific data separated for fully independent multi-domain setups.
Stars: ✭ 916 (+3564%)
Mutual labels:  hacktoberfest
Bezier Envelope For Inkscape
The Bezier Envelope Extension for Inkscape
Stars: ✭ 21 (-16%)
Mutual labels:  hacktoberfest
Laravel Sri
Subresource Integrity hash generator for laravel
Stars: ✭ 23 (-8%)
Mutual labels:  hacktoberfest
Db Mysql
Stars: ✭ 22 (-12%)
Mutual labels:  hacktoberfest
Sentry Laravel
Laravel SDK for Sentry
Stars: ✭ 927 (+3608%)
Mutual labels:  hacktoberfest
Laminas Skeleton Installer
Installer plugin for Laminas MVC Skeleton application
Stars: ✭ 22 (-12%)
Mutual labels:  hacktoberfest
Kuberhealthy
A Kubernetes operator for running synthetic checks as pods. Works great with Prometheus!
Stars: ✭ 920 (+3580%)
Mutual labels:  hacktoberfest
Rladies Brasil
Lista de meetups online de diferentes capítulos da R-Ladies no Brasil.
Stars: ✭ 25 (+0%)
Mutual labels:  hacktoberfest
Hazelcast Hibernate
A distributed second-level cache for Hibernate
Stars: ✭ 24 (-4%)
Mutual labels:  hacktoberfest
Apostrophe Documentation
Documentation for the ApostroheCMS open-souce ecosystem
Stars: ✭ 23 (-8%)
Mutual labels:  hacktoberfest

sivar-utils 🇸🇻

TS/JS utils para el desarrollo de sistemas salvadoreños (Validacion de docs DUI, NIT, etc...)

Version Build Install Size Downloads PRs Welcome Commitizen friendly MIT License

All Contributors

Watch on GitHub Star on GitHub Tweet

Getting Started

Installation

npm install --save sivar-utils

Usage

  • isDUI

import { isDUI } from 'sivar-utils';

const str = 'test';
const fakeDUI = '00000000-0';
const validDUI = '02495046-3'; // DISCLAIMER: taken from Google

isDUI(str); // false
isDUI(fakeDUI); // false
isDUI(validDUI); // true
  • isNIT

import { isNIT } from 'sivar-utils';

const str = 'test';
const fakeNIT = '0000-000000-000-0';
const validNIT = '0614-051286-129-4'; // DISCLAIMER: taken from Google
const alsoValidNIT = '06140512861294';

isNIT(str); // false
isNIT(fakeNIT); // false
isNIT(validNIT); // true
isNIT(alsoValidNIT); // true
  • isMobilePhoneNumber

import { isMobilePhoneNumber } from 'sivar-utils';

const str = 'test';
const fakeMobilePhone = '9999-9999';
const validMobilePhone = '7071-1244'; // DISCLAIMER: taken from Google

isMobilePhoneNumber(str); // false
isMobilePhoneNumber(fakeMobilePhone); // false
isMobilePhoneNumber(validMobilePhone); // true
  • isResidentialPhoneNumber

import { isResidentialPhoneNumber } from 'sivar-utils';

const str = 'test';
const fakeResidentialPhone = '5555-5555';
const validResidentialPhone = '2244-4777'; // DISCLAIMER: taken from Google

isResidentialPhoneNumber(str); // false
isResidentialPhoneNumber(fakeResidentialPhone); // false
isResidentialPhoneNumber(validResidentialPhone); // true
  • isPhoneNumber

import { isPhoneNumber } from 'sivar-utils';

const str = 'test';
const fakePhone = '1234-5678';
const validPhone = '2591-3000'; /* or '7725-4747' */ // DISCLAIMER: taken from Google

isPhoneNumber(str); // false
isPhoneNumber(fakePhone); // false
isPhoneNumber(validPhone); // true
  • isPassport

import { isPassport } from 'sivar-utils';

const str = 'test';
const fakePassport = '$03766021';
const validPassport = 'A12345678';

isPassport(str); // false
isPassport(fakePassport); // false
isPassport(validPassport); // true
  • isCarPlate

import { isCarPlate } from 'sivar-utils';

const str = 'test';
const fakePlate = 'XY525929';
const validNationalPlate = 'N10731'; // DISCLAIMER: taken from Google
const validParticularPlate = 'p525929'; // DISCLAIMER: taken from Google

isCarPlate(str); // false
isCarPlate(fakePlate); // false
isCarPlate(validNationalPlate); // true
isCarPlate(validParticularPlate); // true

Contributing

How to contribute?

This is a commitizen friendly repository, so instead of creating commits using git commit, please use our custom CLI by running:

npm run cz

Formatting & Linting

Make sure you have installed the following plugins on your Code Editor

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Alejandro Paz

⚠️ 💻

Jorge Monge

💻 🐛

Ricardo Ramírez

🤔

Jaime Leonardo Suncin Cruz

💻 ⚠️ 🤔

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © jonathanpalma

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].