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 🙏

© 2025 – Pkg Stats / Ryan Hefner

lang2idl

v0.0.7

Published

programming language interface to idl.and idl to programing language.

Readme

  1. What is it?

         this is a tool for create a json idl(interface description lanauge) from groovy/java/c# etc, and convert idl to typescript/java/groovy/c# etc.
  2. How use?

  • 1、install:

    • npm install:

      npm install -g lang2idl
        or
      git clone [email protected]:nofdev/lang2idl.git
      
      cd lang2idl
      
      npm link #this command will create a link to current folder.
  • 2、use

    • create json idl from groovy:

      groovy2idl "groovy files or dir path" // the files path is not must if current folder had groovy files.
    • create json idl from c#:

      cs2idl "cs files or dir path" // the files path is not must if current folder had cs files.

      Before execute commands below, you need change the json idl file name as a package name, for example:nofdev-userfacade.

    • create typescript from json idl:

      idl2ts "json idl file path" // the json idl file path is must.
    • create groovy from json idl:

      idl2groovy "json idl file path" // the json idl file path is must.
    • create cs from json idl:

      idl2cs "json idl file path" // the json idl file path is must.
  • 3、publish:

    After convert json idl to lang file, you can publish it to npmjs/nuget/maven repository, then other developer can use it as a package.

    • npm package:

      cd npm-package
      
      npm build
      
      npm publish
  1. About code document

    Standard code:

    
      /**
      * 换绑手机号(没有关联护照的账号,可以正常绑定手机号和修改绑定的手机号
      * @description 1.判断手机号是否已绑定网账号,如果已绑定,不能换绑
      * @description 2.判断手机号是否是护照
      * @description   2.1. 如果是护照,验证护照手机号+验证码登录的逻辑,换绑网手机号、绑定护照
      * @description   2.2. 如果不是护照,验证网换绑手机号的短信验证,走网换绑手机号的逻辑
      * @author MengQiang
      * @param mobile 换绑后的手机号 eg.13411011011
      * @param smsVerificationCode 短信验证码 eg.888888
      * @param smsTokenId 短信验证码TokenId
      * */
      void changeBindingMobileForMe(String mobile, String smsVerificationCode,String smsTokenId);Ï
    

    The comments that not start with '@' is method's comments. Start with '@author' is the author of code block. Start with '@param' are args comments, and the eg.xxx is for test value. Start with '@return' is the method return result comments.

  2. About import

    If import other package, must not use '*' in import code line, because the converter need match the custom type's package, use '*' can't match it nicety.

  3. About property(groovy)

    Property code must end with ';' for split property code block in groovy.