Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@privacybydesign/irmajs
Advanced tools
`irmajs` is a Javascript client of the RESTful JSON API offered by the [`irma server`](https://github.com/privacybydesign/irmago/tree/master/irma). It allows you to use the `irma server` to:
irmajs
is a Javascript client of the RESTful JSON API offered by the irma server
. It allows you to use the irma server
to:
irma server
and the IRMA app).irmajs
supports all major browsers (Firefox, Chrome, Safari, Edge, Internet Explorer 11).
Technical documentation of irmajs
can be found at irma.app/docs.
Compile the library:
npm run build
This writes irma.js
to the dist
folder, which you can include in your website in a <script>
tag
If you have included irma.js
(e.g. <script src="irma.js" defer></script>
) you can start an IRMA disclosure session as follows:
const request = {
'type': 'disclosing',
'content': [{
'label': 'Over 18',
'attributes': [ 'irma-demo.MijnOverheid.ageLower.over18' ]
}]
};
irma.startSession(server, request)
.then(({ sessionPtr, token }) => irma.handleSession(sessionPtr, {server, token}))
.then(result => console.log('Done', result));
This assumes you have an irma server
that is configured to accept unauthenticated session requests listening at the URL indicated by server
.
For complete examples, see the examples
folder.
FAQs
_Only use this package for backwards compatibility reasons. If you are new to IRMA, please use the [`irma-frontend-packages`](https://github.com/privacybydesign/irma-frontend-packages) instead._
The npm package @privacybydesign/irmajs receives a total of 7 weekly downloads. As such, @privacybydesign/irmajs popularity was classified as not popular.
We found that @privacybydesign/irmajs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.