
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
muthu-plugins
Advanced tools
Commonly used plugins for Javascript based frameworks.
with npm
npm install --save muthu-plugins
To Initialize Headers and Base Url for Api Calls, call the below method to initialize.
initializeApiCall(
{
"Content-Tye":"application/json", // Remove or Change value for Content Type whatever you need
"Authorization":"Bearer Token" // Remove or Change value for Authorization whatever you need
"YOUR_CUSTOM_HEADERS" : "YOUR_CUSTOM_HEADERS_VALUE" // Add your Headers whatever you need
},
"BASEURL_STRING", // Must be your Base URL
"WITH_CREDENTIALS", // With Credentials must be Boolean - true | false
[{
status_code : "401", // Kindly pass the status code to run the function mentioned in func key for all Api's
func: "YOUR_FUNCTIONS" // Call your functions based on Status Code (status_code)
},
{
status_code : "406", // Kindly pass the status code to run the function mentioned in func key for all Api's
func: "YOUR_FUNCTIONS" // Call your functions based on Status Code (status_code)
}]
);
For Example,
import {initializeApiCall} from "muthu-plugins";
initializeApiCall(
{
"Content-Tye":"application/json",
"Authorization":"Bearer Token",
},
"http://43.204.131.206:8000/api/v1/",
false,
{
status_code:'401',
func: () => (your_function1(),your_function2(),...)
}
);
For Get Method, call getApiCall method to make the request and get the respsonse.
getApiCall('PART_OF_URL_STRING', (response) => {
console.log(response);
});
For Post Method, call postApiCall method to make the request and get the respsonse.
var data = {} // Your POST Data's
postApiCall('PART_OF_URL_STRING', {data}, (response) => {
console.log(response);
});
For Put Method, call putApiCall method to make the request and get the respsonse.
var data = {} // Your Data's
putApiCall('PART_OF_URL_STRING', {data}, (response) => {
console.log(response);
});
For Patch Method, call patchApiCall method to make the request and get the respsonse.
var data = {} // Your Data's
patchApiCall('PART_OF_URL_STRING', {data}, (response) => {
console.log(response);
});
For Delete Method, call deleteApiCall method to make the request and get the respsonse.
var data = {} // Your Data's
deleteApiCall('PART_OF_URL_STRING', {data}, (response) => {
console.log(response);
});
For set item, use below to set the item to store in Cookie.
setCookie(name, value);
For set item with expiry, use below to set the item to store in Cookie with Expiry.
setCookieWithExpiry(name, value, no_of_expiry_days);
For get item, use below to get the item stored in Cookie.
getCookie(name);
For remove item, use below to remove the item stored in Cookie.
removeCookie(name);
For remove all items, use below to remove all the items stored in Cookie.
deleteAllCookies();
For set item, use below to set the item to store in local storage.
storageSetItem(key, value);
For get item, use below to get the item stored in local storage.
storageGetItem(key);
For remove item, use below to remove the item stored in local storage.
storageRemoveItem(key);
For remove all items, use below to remove all items stored in local storage.
storageRemoveAll(key);
For set item, use below to set the item to store in session storage.
sessionStorageSetItem(key, value);
For get item, use below to get the item stored in session storage.
sessionStorageGetItem(key);
For remove item, use below to remove the item stored in session storage.
sessionStorageRemoveItem(key);
For remove all items, use below to remove all items stored in session storage.
sessionStorageRemoveAll(key);
currencyFormatter(amount, code);
For Example
currencyFormatter('120','INR'); // Returns ₹120
showTimeZoneDate(full_date_with_time);
showZoneDate(full_date_with_time);
showZoneTime(date);
textCapitalize(text);
returnFirstDegreeObjValue(obj, key);
returnSecondDegreeObjValue(obj, key, postion);
returnThirdDegreeObjValue(masterobj, obj, key, postion);
returnFourthDegreeObjValue(masterobj, obj, key, postion, fourthObj);
returnFifthDegreeObjValue(masterobj, obj, key, postion, fourthObj, fifthObj);
parseJson(obj);
stringifyJson(obj);
reloadWindow();
reloadWindowToPath(path_to_load);
This component is written by Muthukumar D.
Muthukumar D, 2022 © All Rights Reserved. [Muthukumar D]
FAQs
Created by Muthukumar D
We found that muthu-plugins demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.