
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
lower-cases
Advanced tools
Convert String in Object,Array or Plain String to
lowercase.
If you value my work and many other of my Open-Source projects to be continuously improved
npm install lower-cases --save
const Lower= require('lower-cases');
Convert String in Object, Array or String variable to lowercase. Specific type of requirement can be addressed like Object Keys or Object values to be lowercased, Retrieve Object keys or values lowercased as array. Find below example for your best needs.
console.log(Lower.isLowerCased("shahul B"));
//OUTPUT: false
console.log(Lower.getStringLowerCased("jAckl"));
//OUTPUT: jackl
console.log(Lower.getStringLowerCasedWithPos("SHAHUL HAMEED BUHARI", 4, 5));
// OUTPUT: SHAHuL HAMEED BUHARI
console.log(Lower.getObjectLowerCased({"T":1,"U":{"K":["JKO","opl"],"SHAHUL":"PIANO","B":{"JILL_JACK":[{"BANANA":"JILL_JACK"},{"JILL_JACK":"APPLE"}]}},"Family":["shahul","farook"]}));
// OUTPUT: {"t":1,"u":{"k":["jko","opl"],"shahul":"piano","b":{"jill_jack":[{"banana":"jill_jack"},{"jill_jack":"apple"}]}},"family":["shahul","farook"]}
console.log(Lower.getObjectKeysLowercased({"T":1,"U":{"K":["JKO","opl"],"SHAHUL":"PIANO","B":{"JILL_JACK":[{"BANANA":"JILL_JACK"},{"JILL_JACK":"APPLE"}]}},"Family":["shahul","farook"]}));
//OUTPUT:{"t":1,"u":{"k":["JKO","opl"],"shahul":"PIANO","b":{"jill_jack":[{"banana":"JILL_JACK"},{"jill_jack":"APPLE"}]}},"family":["shahul","farook"]}
console.log(Lower.getObjectvaluesLowercased({"T":1,"U":{"K":["JKO","opl"],"SHAHUL":"PIANO","B":{"JILL_JACK":[{"BANANA":"JILL_JACK"},{"JILL_JACK":"APPLE"}]}},"Family":["shahul","farook"]}));
//OUTPUT:{"T":1,"U":{"K":["jko","opl"],"SHAHUL":"piano","B":{"JILL_JACK":[{"BANANA":"jill_jack"},{"JILL_JACK":"apple"}]}},"Family":["shahul","farook"]}
console.log(Lower.getKeysLowerCased({"T":1,"U":{"K":["JKO","opl"],"SHAHUL":"PIANO","B":{"JILL_JACK":[{"BANANA":"JILL_JACK"},{"JILL_JACK":"APPLE"}]}},"Family":["shahul","farook"]}));
//OUTPUT:["t","u","k","shahul","b","jill_jack","banana","jill_jack","family"]
console.log(Lower.getValuesLowerCased({"T":1,"U":{"K":["JKO","opl"],"SHAHUL":"PIANO","B":{"JILL_JACK":[{"BANANA":"JILL_JACK"},{"JILL_JACK":"APPLE"}]}},"Family":["shahul","farook"]}));
//OUTPUT:[1,"jko","opl","piano","jill_jack","apple","shahul","farook"]
console.log(Lower.getArrayLowercased([{ "Shahul": "hAmeed" }]));
//OUTPUT: [ { shahul: 'hameed' } ]
console.log(Lower.getArrValLowerCasedByIndex([{ "Shahul": "hAmeed" },{ ABU: 'FAZIL' } ], 0));
//OUTPUT: [ { shahul: 'hameed' }, { ABU: 'FAZIL' } ]
MIT
FAQs
Change the given input to the lower case based on the method called.
We found that lower-cases 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.