nodejs-utility-functions

1.0.2 • Public • Published

nodejs-utility-functions

This package helps to speed up work.

Install via NPM

npm install nodejs-utility-functions

Usage

const {
  createSlug,
  createHashPassword,
  getCloudinaryFilePublicId,
  checkPassword,
} = require("nodejs-utility-functions");

To Create hash password:

// Call This Function
let hashPassword = createHashPassword(Your Password);

Note Then you will get Hash Password

To Check Password

// Call This Function
    let result = checkPassword(Your Password, Database Password)
});

Note Then you will get a Boolean Value

To Create Slug:

// Call This Function
let slug = createSlug(Your Title)

Note Then you will get a Slug

To get Cloudinary Public Id

// Call This Function
    let publicId = getCloudinaryFilePublicId(Your File URL)
});

Note Then you will get a Public Id

License

ISC

Package Sidebar

Install

npm i nodejs-utility-functions

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

2.37 kB

Total Files

3

Last publish

Collaborators

  • hammadsadi