Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nyt-util

neyaatek48ISC1.0.2TypeScript support: included

Neyaatek Utilies

typescript, npm, nyt, util

readme

Session Info

export type SessionInfo = {
  id: string;
  email?: string;
  mobile?: string;
  name?: string;
  role: string;
  requestId: string;
  token: string;
};

ErrorResponse

new ErrorResponse(message): {
    status: 0,
    message: 'ERROR',
    data: message
}

util

UniqueCode();
UniqueByType(name, type) =>  key give Upper case without special char by type
Key(name) =>  key give Upper case without special char
DaysBack(date, addDays, isDays)
AddDays(date, addDays, isDays)

Crypto encrypt

crypto.encrypt(text, key) :: string

Crypto decrypt

crypto.decrypt(text, key) :: string