Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sackrin/schemaly
Quick and easy library for creating permission based javascript data schemas.
https://github.com/sackrin/schemaly
es6 nodejs sanitization schema security typescript validation
Last synced: 14 days ago
JSON representation
Quick and easy library for creating permission based javascript data schemas.
- Host: GitHub
- URL: https://github.com/sackrin/schemaly
- Owner: sackrin
- Created: 2018-04-25T05:59:37.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-28T01:12:14.000Z (over 4 years ago)
- Last Synced: 2025-01-14T18:54:37.322Z (21 days ago)
- Topics: es6, nodejs, sanitization, schema, security, typescript, validation
- Language: TypeScript
- Homepage:
- Size: 2.19 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Schemaly
This library is designed to help work with data objects by providing structure, validation, sanitization and policy driven access control. Situations where you may need this functionality include retrieving data from a database and restricting what the output should contain using user roles and scope. Processing request data from an unknown source and stripping out unexpected or unauthorised values. Creating universal data models to share on your client and server side projects to allow for shared sanitization + validation. A mixture of the previous examples to lock down and regulate data for serving, receiving and storing data.
Pretty much you can use this library to provide client side model and validation functionality and/or as a middleware to your node api REST or GraphQL endpoints.
## Installation
Install by using npm```javascript
npm install --save @schemaly/async
npm install --save @schemaly/sync
```or by using yarn
```javascript
yarn add @schemaly/async
yarn add @schemaly/sync
```