Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

value-size

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

value-size

NPM package in getting the size of an array, object or string.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Build Status

Overview

NPM Package for getting the size of an array, object or string.

Installation

npm i value-size --save

Setup & Basic Usage

const size = require('value-size')

size([1, 2, 3, 4, 5]); // 5
size('size'); // 4
size({ one: 1, two: 2, three: 3 }); // 3

Contribute

Code snippet from: 30 seconds of code.

Feel free to clone or fork this project: https://github.com/deanilvincent/value-size.git

Contributions & pull requests are welcome!

I'll be glad if you give this project a ★ on Github :))

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Keywords

value-size

FAQs

Package last updated on 27 Apr 2020

Did you know?

Socket

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.

Install

Related posts