Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
object-count
Advanced tools
Count the number of properties in an object, or return the number of items in an array. It doesn't look up in the prototype chain.
npm install object-count
Require object-count:
var count = require("object-count");
Use it with an object:
var anObject = {
"property1": "with",
"property2": "some",
"property3": "data"
};
count(anObject); // 3
It also works with an array:
var anArray = ["with", "some", "data"];
count(anArray); // 3
MIT
FAQs
returns the size of an array or the number of properties of an object
The npm package object-count receives a total of 1 weekly downloads. As such, object-count popularity was classified as not popular.
We found that object-count 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.