3.2.1 • Published 1 year ago

prse v3.2.1

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
1 year ago

❓About

prse (pronounced as parse) allows you to validate your data in JavaScript with a simple yet powerful syntax.

✨ Usage

Web:

<script src="https://unpkg.com/prse/prse.umd.js"></script>
<script>
	string().run('hello!', () => { console.log('success') });
</script>

ES6:

import { string } from 'prse';

string().run('hello!', () => { console.log('success') });

Commonjs:

const { string } = require('prse');

string().run('hello!', () => { console.log('success') });

Import everything

Shown with ES6 but works similarly with commonjs and web

import { p } from 'prse';

p.string().run('hello!', () => { console.log('success') });
p.number().parse(69, () => { console.log('success') }); // run and parse are same, you can use either

📖 Checkout the full documentation here: https://github.com/Axorax/prse.js/blob/main/docs.md


3.2.1

1 year ago

3.2.0

1 year ago

1.0.0

1 year ago

3.1.0

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.1.2

1 year ago

2.3.0

1 year ago

0.0.1

1 year ago

2.1.1

1 year ago

2.2.0

1 year ago

2.4.0

1 year ago

0.0.2

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

0.1.1

4 years ago

0.1.0

4 years ago