Skip to content

Commit

Permalink
Move to trojs
Browse files Browse the repository at this point in the history
  • Loading branch information
w3nl committed Apr 19, 2024
1 parent 37ef8b7 commit 191fb66
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 23 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@

github: [w3nl]
patreon: w3news
buymeacoffee: https://www.buymeacoffee.com/hckrnews
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.10.0
20.12.2
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Contributing

HckrNews Validator is Free and Open Source Software. Issues and pull requests are more than welcome!
TroJS Validator is Free and Open Source Software. Issues and pull requests are more than welcome!
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Hckr.News
Copyright (c) 2024 TroJS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Object validator by hckr.news
# Object validator by TroJS

[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Scrutinizer Code Quality][scrutinizer-image]][scrutinizer-url]
[![NPM version][npm-image]][npm-url]

Validate the object values by a schema.
I hope you like it.
Expand All @@ -10,14 +10,13 @@ I hope you like it.
If it has saved you development time, please consider [sponsoring the project](https://github.com/sponsors/w3nl)
with GitHub sponsors!

But me a coffee/book: https://www.buymeacoffee.com/hckrnews
Or on patreon: https://patreon.com/w3news

## Installation

`npm install @hckrnews/validator`
`npm install @trojs/validator`
or
`yarn add @hckrnews/validator`
`yarn add @trojs/validator`

## Test the package

Expand Down Expand Up @@ -101,7 +100,7 @@ const personObj = {
country: "Somewehere"
},
companies: [
{ name: "Example company 1", website: "https://hckr.news" }
{ name: "Example company 1", website: "https://trojs.org" }
{ name: "Example company 2" }
]
}
Expand All @@ -124,7 +123,7 @@ const persons = [
country: "Somewehere"
},
companies: [
{ name: "Example company 1", website: "https://hckr.news" }
{ name: "Example company 1", website: "https://trojs.org" }
{ name: "Example company 2" }
]
}
Expand Down Expand Up @@ -169,7 +168,7 @@ const persons = [
country: "Somewehere"
},
companies: [
{ name: "Example company 1", website: "https://hckr.news" }
{ name: "Example company 1", website: "https://trojs.org" }
{ name: "Example company 2" }
]
}
Expand Down Expand Up @@ -211,11 +210,5 @@ Available types:
You can check for multiple types.
e.g. `function|async` so it can receive a normal function and also a sync function

[npm-url]: https://www.npmjs.com/package/@hckrnews/validator
[npm-image]: https://img.shields.io/npm/v/@hckrnews/validator.svg
[travis-url]: https://travis-ci.org/hckrnews/validator
[travis-image]: https://img.shields.io/travis/hckrnews/validator/master.svg
[coveralls-url]: https://coveralls.io/r/hckrnews/validator
[coveralls-image]: https://img.shields.io/coveralls/hckrnews/validator/master.svg
[scrutinizer-url]: https://scrutinizer-ci.com/g/hckrnews/validator/?branch=master
[scrutinizer-image]: https://scrutinizer-ci.com/g/hckrnews/validator/badges/quality-score.png?b=master
[npm-url]: https://www.npmjs.com/package/@trojs/validator
[npm-image]: https://img.shields.io/npm/v/@trojs/validator.svg
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hckrnews/validator",
"name": "@trojs/validator",
"version": "9.0.4",
"description": "Object validator",
"main": "src/validator.js",
Expand All @@ -23,7 +23,7 @@
},
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
"url": "https://trojs.org/"
},
"license": "MIT",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/validator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const testCases = [
country: 'Somewehere',
},
companies: [
{ name: 'Example', website: new URL('https://hckr.news') },
{ name: 'Example', website: new URL('https://trojs.org') },
],
},
schema: personSchema,
Expand Down

0 comments on commit 191fb66

Please sign in to comment.