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

jsonlogic2latex

v0.0.22

Published

JsonLogic2Latex

Downloads

2

Readme

latexJsonLogic

1. 변환 가능 latex 표현

기호|변환 가능 latex 표현| 주의 사항 --|--|--| 제곱근|\sqrt{} or \sqrt[]{}| {} 표기 필수 부등호|>,<,\ge,\le| 제곱|{밑}^{지수} 분수|\frac{분자}{분모} 순환소수| a.\dot{b}c\dot{d}|\cdots 불가 좌표|(a,b) 곱하기|\times 연립 방정식|\begin{cases}식\식\end{cases}|식 3개 이상 가능 비례식|a:b = c:d 파이|\pi 변수|a ~ z,A ~ Z,a'~ z',f(x)

2. NPM 패키지 업데이트

  • NPM 계정 필요
    • JsonLogic2Latex Module 파일 안에서
    • https://www.npmjs.com/ -> 회원가입 후
    • npm 계정에 로그인이 되어 있지 않다면 npm 로그인 후 진행
      foo@bar:~$ npm login // npm 로그인 명령어
      npm notice Log in on https://registry.npmjs.org/
      Username :
      Password :
      Email : 
      // npm 계정 정보 (이름,패스워드,이메일) 입력
          
      foo@bar:~$ npm whoami // 로그인이 되어 있는지 확인 명령어
  • NPM 패키지 배포
    foo@bar:~$ npm build // npm 패키지 빌드
    foo@bar:~$ npm version patch // npm 패키지 버전 업 /Git 작업 디렉토리는 깨끗한 상태여야 함 (commit 등 끝난 상태)
    foo@bar:~$ npm publish // npm 패키지 배포
  • https://www.npmjs.com/ -> 버전 확인 후 (pts 테스트 후) pts, 이다현 연구원님께 전달
  • 새 계정 판 후 전달할 내용) npm 새로운 module 이름 pts, 이다현 연구원님께 전달

3. 모듈 구조

  • Latex → JsonLogic
    1. DetermineType 에서 입력 Latex 에 대한 등식,부등식,좌표 등의 타입 판단
    2. 타입에 따라 Latex 식 분리
    3. latexParsing 에서 분리된 Latex 식을 "식" → "항" 방향으로 tree 생성
  • JsonLogic → Latex
    1. LogicParsing 에서 입력 JsonLogic 에 대한 등식,부등식,좌표 등의 타입 판단
    2. 타입에 따라 JsonLogic 으로 분리, tree 의 Key 로 식종류 판단
    3. latexParsing 에서 "식" → "항" 방향으로 Latex 생성
    4. 자연스러운 표현을 위한 항 사이의 곱하기 기호 생략