Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
conversikit
Advanced tools
conversikit is a versatile JavaScript library that provides functions to convert and transform text and data in various ways. Whether you need to change letter casing, convert between JSON and arrays, apply camel case formatting, or handle CSV data, conversikit has you covered.
toConvertUpperCase(string)
toConvertLowerCase(string)
toConvertCapitalizeCase(string)
toConvertArrayJson(array)
toConvertJsonArray(array)
toConvertCamelCase(string)
toConvertCSVFile(data, fileName)
toConvertCSVToJson(path)
const conversikit = require("conversikit");
async function example() {
const data = await conversikit.toConvertUpperCase("thank you my man"); // "THANK YOU MY MAN"
const data1 = await conversikit.toConvertLowerCase("thank you my Man"); // "thank you my man"
const data2 = await conversikit.toConvertCapitalizeCase("thank you my Man"); // "Thank You My Man"
console.log(data);
console.log(data1);
console.log(data2);
}
example();
const conversikit = require("conversikit");
const data = [
"name",
"Ankit",
"roll",
"10",
// ... (other key-value pairs)
];
const jsonData = await conversikit.toConvertArrayJson(data);
console.log("Result =", jsonData);
Output:
Result = {
name: "Ankit",
roll: "10",
// ... (other key-value pairs)
};
Note: If duplicate keys are present in the array, they will be handled gracefully.
const conversikit = require("conversikit");
const data = "thank you";
const data1 = "";
const data2 = "thank";
const data3 = "we are programmer";
const result = await conversikit.toConvertCamelCase(data); // "thankYou"
const result1 = await conversikit.toConvertCamelCase(data1); // ""
const result2 = await conversikit.toConvertCamelCase(data2); // "thank"
const result3 = await conversikit.toConvertCamelCase(data3); // "weAreProgrammer"
const conversikit = require("conversikit");
const data = [
{ name: "test1", age: 10 },
{ name: "test2", age: 30 },
// ... (other objects)
];
const filename = "example.csv";
await conversikit.toConvertCSVFile(data, filename);
const conversikit = require("conversikit");
const data = await conversikit.toConvertCSVToJson("give your file path name"); // e.g., "data.csv"
Output:
Result = [
{ name: 1, age: 10, dob: "12-08-1997" },
{ name: "thank", age: 90, dob: "12-09-1995" },
];
Arun Pradhan.
Feel free to reach out for questions, feedback, or contributions.
FAQs
convert anything
The npm package conversikit receives a total of 11 weekly downloads. As such, conversikit popularity was classified as not popular.
We found that conversikit 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.