Socket
Socket
Sign inDemoInstall

@tannin/postfix

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tannin/postfix

Convert a C expression to an array of postfix terms


Version published
Weekly downloads
59K
decreased by-4.57%
Maintainers
1
Weekly downloads
 
Created
Source

@tannin/postfix

Given a C expression, returns the equivalent postfix (Reverse Polish) notation terms as an array.

If a postfix string is desired, simply .join( ' ' ) the result.

Installation

Using npm as a package manager:

npm install @tannin/postfix

Otherwise, download a pre-built copy from unpkg:

https://unpkg.com/@tannin/postfix/dist/postfix.min.js

Usage

import postfix from '@tannin/postfix';

postfix( 'n > 1' );
// ⇒ [ 'n', '1', '>' ]

License

Copyright 2019-2020 Andrew Duthie

Released under the MIT License.

FAQs

Package last updated on 07 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc