This is as WIP! Expect changes.
This package contains a JavaScript client for the Passwords app for Nextcloud
You can find the API documentation here
You can use the enhanced version of the client in your project like this:
import PasswordsClient from 'passwords-client';
let client = new PasswordsClient({baseUrl:'https://cloud.example.com/', user:'user', token:'12345-12345-12345-12345-12345'});
let passwordsRepository = client.getPasswordRepository();
let passwordCollection = await passwordsRepository.findAll();
You cah use a development version in your project with the following commands
# Go into library folder
cd passwords-client
sudo npm link
# Go into project folder
cd ../project
npm link passwords-client