Get started with flow.js CDN
MIT licensed
Flow.js: Lightweight library for parsing, executing Flow type annotations.
Tags:- flow.js
- flow
- resumable.js
- file upload
- resumable upload
- chunk upload
- html5 upload
- javascript upload
- upload
Stable version
Copied!
How to start using flow.js CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with flow.js CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/flow.js/2.14.1/flow.min.js"></script>
</head>
<body>
<script>
// Define your data types
flow.define('MyArray', flow.ArrayType(flow.Number));
// Use your custom type
const numbers: MyArray = [1, 2, 3, 4];
// Perform type checking
const result = flow.try(() => numbers.push('five'));
if (result.ok) {
console.log('Type checking passed');
} else {
console.log('Type checking failed:', result.error);
}
</script>
</body>
</html>
Copied!
Copied!