|
1 | | -# Deno based bids-validator |
| 1 | +# The BIDS Validator |
2 | 2 |
|
3 | | -## Intro |
| 3 | +The BIDS Validator is a web application, command-line utility, |
| 4 | +and Javascript/Typescript library for assessing compliance with the |
| 5 | +[Brain Imaging Data Structure][BIDS] standard. |
4 | 6 |
|
5 | | -This is a full rewrite of the bids-validator JavaScript implementation designed to use the [bids-specification schema](https://github.com/bids-standard/bids-specification/tree/master/src/schema) to apply the majority of validation rules. |
| 7 | +## Getting Started |
6 | 8 |
|
7 | | -Deno is a JavaScript and TypeScript runtime that is used to run the schema based validator. Deno is simpler than Node.js and only requires one tool to use, the Deno executable itself. To install Deno, follow these [install instructions for your platform](https://deno.land/manual/getting_started/installation). |
| 9 | +In most cases, |
| 10 | +the simplest way to use the validator is to browse to the [BIDS Validator][] web page: |
8 | 11 |
|
9 | | -## Usage |
| 12 | +{.only-dark width="50%" align=center} |
| 14 | +{.only-light width="50%" align=center} |
10 | 16 |
|
11 | | -To use the latest validator hosted at https://deno.land/x/bids_validator, use the following command: |
| 17 | +The web validator runs in-browser, and does not transfer data to any remote server. |
12 | 18 |
|
13 | | -```console |
14 | | -$ deno run --allow-read --allow-env https://deno.land/x/bids_validator/bids-validator.ts path/to/dataset |
| 19 | +In some contexts, such as when working on a remote server, |
| 20 | +it may be easier to use the command-line. |
| 21 | +The BIDS Validator can be run with the [Deno] runtime |
| 22 | +(see [Deno - Installation][] for detailed installation instructions): |
| 23 | + |
| 24 | +```shell |
| 25 | +deno run -ERN jsr:@bids/validator |
15 | 26 | ``` |
16 | 27 |
|
17 | | -Deno by default sandboxes applications like a web browser. `--allow-read` allows the validator to read local files, and `--allow-env` enables OS-specific features. |
| 28 | +Deno by default sandboxes applications like a web browser. |
| 29 | +`-E`, `-R` and `-N` allow the validator to read environment variables, |
| 30 | +local files, and network locations. |
18 | 31 |
|
19 | 32 | ### Configuration file |
20 | 33 |
|
|
0 commit comments