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

nv-cli-enum-define-to-js

v1.0.2

Published

nv-cli-enum-define-to-js ========== - cli tool - convert simple C enum define to js

Downloads

1

Readme

nv-cli-enum-define-to-js

  • cli tool
  • convert simple C enum define to js

install

  • npm install nv-cli-enum-define-to-js -g

usage

	Usage: nv_cli_enum_define_to_js [options] 
	Options:
	    -i, --input         input string ,default stdin
	    -o, --output        output string,default stdout
	    -h, --help          usage

example

	# nv_cli_enum_define_to_js -o errno.js

	//paste your code here
            //    the three lines
            //          #define  X Y    #define  Y Z #define  Z X
            //    is just for test circular removing , meaning-less
            //                                          

	#define EDEADLOCK EDEADLK
	#define ENOTSUP EOPNOTSUPP
	#define EWOULDBLOCK EAGAIN
	#define  X Y
	#define  Y Z 
	#define  Z X
	#define EPERM 1
	#define ENOENT 2
	#define ESRCH 3
	#define EINTR 4
	#define EIO 5
	#define ENXIO 6
	#define E2BIG 7
	#define ENOEXEC 8
	#define EBADF 9
	#define ECHILD 10
	#define EAGAIN 11
	#define ENOMEM 12
	#define EACCES 13
	#define EFAULT 14
	#define ENOTBLK 15
	#define EBUSY 16
	#define EEXIST 17
	#define EXDEV 18
	#define ENODEV 19
	#define ENOTDIR 20
	#define EISDIR 21
	#define EINVAL 22
	#define ENFILE 23
	#define EMFILE 24
	#define ENOTTY 25
	#define ETXTBSY 26
	#define EFBIG 27
	#define ENOSPC 28
	#define ESPIPE 29
	#define EROFS 30
	#define EMLINK 31
	#define EPIPE 32
	#define EDOM 33
	#define ERANGE 34
	#define EDEADLK 35
	#define ENAMETOOLONG 36
	#define ENOLCK 37
	#define ENOSYS 38
	#define ENOTEMPTY 39
	#define ELOOP 40
	#define ENOMSG 42
	#define EIDRM 43
	#define ECHRNG 44
	#define EL2NSYNC 45
	#define EL3HLT 46
	#define EL3RST 47
	#define ELNRNG 48
	#define EUNATCH 49
	#define ENOCSI 50
	#define EL2HLT 51
	#define EBADE 52
	#define EBADR 53
	#define EXFULL 54
	#define ENOANO 55
	#define EBADRQC 56
	#define EBADSLT 57
	#define EBFONT 59
	#define ENOSTR 60
	#define ENODATA 61
	#define ETIME 62
	#define ENOSR 63
	#define ENONET 64
	#define ENOPKG 65
	#define EREMOTE 66
	#define ENOLINK 67
	#define EADV 68
	#define ESRMNT 69
	#define ECOMM 70
	#define EPROTO 71
	#define EMULTIHOP 72
	#define EDOTDOT 73
	#define EBADMSG 74
	#define EOVERFLOW 75
	#define ENOTUNIQ 76
	#define EBADFD 77
	#define EREMCHG 78
	#define ELIBACC 79
	#define ELIBBAD 80
	#define ELIBSCN 81
	#define ELIBMAX 82
	#define ELIBEXEC 83
	#define EILSEQ 84
	#define ERESTART 85
	#define ESTRPIPE 86
	#define EUSERS 87
	#define ENOTSOCK 88
	#define EDESTADDRREQ 89
	#define EMSGSIZE 90
	#define EPROTOTYPE 91
	#define ENOPROTOOPT 92
	#define EPROTONOSUPPORT 93
	#define ESOCKTNOSUPPORT 94
	#define EOPNOTSUPP 95
	#define EPFNOSUPPORT 96
	#define EAFNOSUPPORT 97
	#define EADDRINUSE 98
	#define EADDRNOTAVAIL 99
	#define ENETDOWN 100
	#define ENETUNREACH 101
	#define ENETRESET 102
	#define ECONNABORTED 103
	#define ECONNRESET 104
	#define ENOBUFS 105
	#define EISCONN 106
	#define ENOTCONN 107
	#define ESHUTDOWN 108
	#define ETOOMANYREFS 109
	#define ETIMEDOUT 110
	#define ECONNREFUSED 111
	#define EHOSTDOWN 112
	#define EHOSTUNREACH 113
	#define EALREADY 114
	#define EINPROGRESS 115
	#define ESTALE 116
	#define EUCLEAN 117
	#define ENOTNAM 118
	#define ENAVAIL 119
	#define EISNAM 120
	#define EREMOTEIO 121
	#define EDQUOT 122
	#define ENOMEDIUM 123
	#define EMEDIUMTYPE 124
	#define ECANCELED 125
	#define ENOKEY 126
	#define EKEYEXPIRED 127
	#define EKEYREVOKED 128
	#define EKEYREJECTED 129
	#define EOWNERDEAD 130
	#define ENOTRECOVERABLE 131
	#define ERFKILL 132
	#define EHWPOISON 133

       //press ctrl+D
	> const errno = require("./errno")
	> errno[1]
	'EPERM'
	> errno.EPERM
	1
	> 

LICENSE

  • ISC