czech-data-box
v0.1.2
Published
A Node.js module for interacting with the Czech Data Box system (ISDS).
Maintainers
Readme
Czech Data Box Library
⭐ Star this project on GitHub — it motivates us a lot!
A library that provides access to the Information Services Data System (ISDS) interface for third-party applications in Node.js
Description
This library is used for basic communication with the Information System for Data Boxes ISDS or ISDS test
Installation
npm install czech-data-box
Basic usage
Connecting to a data box
import ISDSBox from 'czech-data-box';
// Create an instance of the ISDSBox
const isdsBox = new ISDSBox();
// Login with username and password for production
isdsBox
.loginWithUsernameAndPassword('login', 'heslo', true)
.then(() => {
console.log('Logged in with username and password for production.');
})
.catch((err) => {
console.error(
'Error logging in with username and password for production:',
err,
);
});
// Login with username and password for test environment
isdsBox
.loginWithUsernameAndPassword('login', 'heslo', false)
.then(() => {
console.log('Logged in with username and password for test environment.');
})
.catch((err) => {
console.error(
'Error logging in with username and password for test environment:',
err,
);
});Contributing
Contributions are welcome! Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Create your feature branch:
git checkout -b Feature/my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin Feature/my-new-feature - Submit a pull request :D
Changelog
In separate file CHANGELOG.md. Please keep a CHANGELOG.
This project adheres to Semantic Versioning.
Credits
License
This project is licensed under the MIT License. See the LICENSE file for details.
