npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

park-calc

v1.0.0

Published

Calculator that inputs resignation calculations as strings

Downloads

4

Readme

park-calc

park-calc is a simple JavaScript module for evaluating arithmetic expressions with support for parentheses and basic arithmetic operations.

Installation

To use park-calc in your project, include it as a dependency:

npm install park-calc

Usage

To use the pCalc function in your project, import it from the park-calc module:

const pCalc = require('park-calc');

const result = pCalc('YOUR_EXPRESSION');
console.log(result);

Replace YOUR_EXPRESSION with the arithmetic expression you want to evaluate. The expression can include numbers, parentheses (), and operators +, -, *, /.

Example

const result = pCalc('(2 + 3) * (5 - 2)');
console.log(result); // Outputs: 15

park-calc (한국어)

park-calc는 괄호와 기본 산술 연산을 지원하는 간단한 JavaScript 모듈로, 산술 표현식을 계산하기 위해 사용됩니다.

설치 방법

프로젝트에서 park-calc를 사용하기 위해, 의존성으로 포함시키세요:

npm install park-calc

사용 방법

프로젝트에서 pCalc 함수를 사용하려면, park-calc 모듈에서 이를 가져옵니다:

const pCalc = require('park-calc');

const result = pCalc('계산할_표현식');
console.log(result);

계산할_표현식 자리에 평가하고자 하는 산술 표현식을 넣으세요. 이 표현식은 숫자, 괄호 (), 연산자 +, -, *, /를 포함할 수 있습니다.

예시

const result = pCalc('(2 + 3) * (5 - 2)');
console.log(result); // 출력: 15