2.0.4 • Published 2 years ago

@anciitk/xenon-js v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

xenon-js

React API Client for Xenon

NPM JavaScript Style Guide

Install

npm install --save @anciitk/xenon-js

OR

yarn add @anciitk/xenon-js

Usage

import Xenon from '@anciitk/xenon-js'

xenon = new Xenon(process.env.XENON_BASE_URL)

// Get User credentials
xenon
  .whoami()
  .then((resp) => {
    console.log('User is', resp)
  })
  .catch((err) => console.log(err.message))

// Register a new user
xenon
  .register('username', 'rollno')
  .then(() => {
    console.log('account registered')
  })
  .catch((err) => console.log(err.message))

// Recover a user
xenon
  .recover('username')
  .then(() => {
    console.log('account recovered')
  })
  .catch((err) => console.log(err.message))

License

MIT © Mshivam2409

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

2.0.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago