Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isPort validator #733

Merged
merged 1 commit into from
Sep 29, 2017
Merged

Add isPort validator #733

merged 1 commit into from
Sep 29, 2017

Conversation

frontsideair
Copy link
Contributor

I use it a lot so I wanted to add it.

@chriso
Copy link
Collaborator

chriso commented Sep 29, 2017

Thanks for the PR! 😄

@chriso chriso merged commit c277078 into validatorjs:master Sep 29, 2017
@frontsideair frontsideair deleted the isPort branch September 29, 2017 15:36
@frontsideair
Copy link
Contributor Author

Thanks for very quick merge!

@jyjin
Copy link

jyjin commented Oct 10, 2017

I need to use it, too. but I updated to the last version on npm package, it doesn't have method "isPort"

@chriso
Copy link
Collaborator

chriso commented Oct 10, 2017

@jyjin:

/tmp $ npm i validator
+ validator@9.0.0
added 1 package in 1.808s
/tmp $ node
> var validator = require('validator')
> validator.isPort('80')
true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants