ifs_shm_http_client_ts
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

IF_SHM_CLIENT

@Author

Nabajyoti Sahoo

#Desc

a ts library to communicate with shm

To Build & Publish

npm run build

tsc

npm publish

To add current library dependency in your project

npm install --save ifs_shm_http_client_ts

To Use Library in Your Project

//import

import { IfShmClient } from 'ifs_shm_http_client_ts';

//initialize

IfShmClient.initialize('http://localhost:8080', '{authKey}');

//create or update a shm with json

const result = await IfShmClient.createOrUpdateShmByKeyWithFile(formData, this.shmKey,this.header, 'METADATASTRING', '', '600000');

//create or update shm with a file

const result = await IfShmClient.createOrUpdateShmByKeyWithJsonPayLoad(Object.fromEntries(this.body), this.shmKey,this.header, 'METADATASTRING', '', '600000');

//get shm by key

const text1 = await IfShmClient.getShmByKey( this.shmKey,this.header);

//delete shm by key

const text2 = await IfShmClient.deleteShmByKey( this.shmKey,this.header);

//get shm server info

const text4 = await IfShmClient.getShmServerInfo( this.header);

//check shm state

const text5 = await IfShmClient.checkShmStateByShmKey( this.shmKey,this.header);

//get shm tree with children

const text6 = await IfShmClient.getShmTreeForAShm( this.shmKey,this.header);

Readme

Keywords

none

Package Sidebar

Install

npm i ifs_shm_http_client_ts

Weekly Downloads

2

Version

1.5.2

License

ISC

Unpacked Size

73.7 kB

Total Files

15

Last publish

Collaborators

  • nabajyoti.sahoo