ontodev / valve.js

VALVE in JavaScript
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Port VALVE python to js #13

Open beckyjackson opened 3 years ago

beckyjackson commented 3 years ago

Setup

First, download the repository and navigate to the new directory. Then, install VALVE and its dependencies:

npm install .

This will install the dependencies in a new subdirectory node_modules. If you wish to install them globally:

npm install -g .

To install the command line program, run this command from within the repo (note that you may need to preceed this with sudo):

npm link

To confirm installation, run:

valve-js -h

To import into projects:

const valve = require("valve-js");

You can also run tests with npm test

beckyjackson commented 3 years ago

OK - I got the CLI vs. API working now. The name is now valve-js to prevent collision with the python valve.

beckyjackson commented 3 years ago

@jamesaoverton I think we need to decide which functions we should export for use in the API. I have a pretty short list right now, but perhaps the API needs more? It's annoying that I can't just specify all of them...

module.exports = {
  getRows: getRows,
  idxToA1: idxToA1,
  parse: parse,
  validate: validate,
  validateTable: validateTable,
  valve: valve,
};
jamesaoverton commented 3 years ago

Sorry, this is officially on the back-burner. I'll remove the request for review for now.