Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
grpc-lite
Advanced tools
Readme
this zero-dependency package will download and install the grpc-v1.0.1 prebuilt-binary from https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc
git-branch : | master | beta | alpha |
---|---|---|---|
test-report : | |||
coverage : | |||
build-artifacts : |
{
"package.json": true,
"author": "kai zhu <kaizhu256@gmail.com>",
"description": "{{packageJson.description}}",
"devDependencies": {
"electron-lite": "kaizhu256/node-electron-lite#alpha",
"utility2": "kaizhu256/node-utility2#alpha"
},
"engines": { "node": ">=4 <7" },
"keywords": [
"api",
"grpc",
"light", "lightweight", "lite",
"protobuf"
],
"license": "MIT",
"main": "lib.grpc",
"name": "grpc-lite",
"os": ["darwin", "linux"],
"repository": {
"type": "git",
"url": "https://github.com/kaizhu256/node-grpc-lite.git"
},
"scripts": {
"build-ci": "utility2 shRun shReadmeBuild",
"postinstall": "./lib.grpc.sh shNpmPostinstall",
"test": "\
rm -fr external /tmp/grpc_node-* && \
npm run postinstall && \
export PORT=$(utility2 shServerPortRandom) && utility2 test test.js"
},
"version": "2016.12.3"
}
# build.sh
# this shell script will run the build for this package
shBuildCiTestPre() {(set -e
# this function will run the pre-test build
# test published-package
(export MODE_BUILD=npmTestPublished &&
shRunScreenCapture shNpmTestPublished) || return $?
return
)}
shBuild() {(set -e
# this function will run the main build
# init env
. node_modules/.bin/utility2 && shInit
# cleanup github-gh-pages dir
# export BUILD_GITHUB_UPLOAD_PRE_SH="rm -fr build"
# init github-gh-pages commit-limit
export COMMIT_LIMIT=16
# if branch is alpha, beta, or master, then run default build
if [ "$CI_BRANCH" = alpha ] ||
[ "$CI_BRANCH" = beta ] ||
[ "$CI_BRANCH" = master ]
then
shBuildCiDefault
# upload build-artifacts to github, and if number of commits > $COMMIT_LIMIT,
# then squash older commits
(export MODE_BUILD=buildGithubUpload &&
shBuildGithubUpload) || return $?
fi
)}
shBuild
node
: This requires node
to be installed, version 0.12
or above. If you instead have the nodejs
executable on Debian, you should install the nodejs-legacy
package.
Note: If you installed node
via a package manager and the version is still less than 0.12
, try directly installing it from nodejs.org.
Install the gRPC NPM package
npm install grpc
npm install
from the repository root.Note: On Windows, this might fail due to nodejs issue #4932 in which case, you will see something like the following in npm install
's output (towards the very beginning):
..
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
WINDOWS_BUILD_WARNING
"..\IMPORTANT: Due to https:\github.com\nodejs\node\issues\4932, to build this library on Windows, you must first remove C:\Users\jenkins\.node-gyp\4.4.0\include\node\openssl"
...
..
To fix this, you will have to delete the folder C:\Users\<username>\.node-gyp\<node_version>\include\node\openssl
and retry npm install
To run the test suite, simply run npm test
in the install location.
This library internally uses ProtoBuf.js, and some structures it exports match those exported by that library
If you require this module, you will get an object with the following members
function load(filename)
Takes a filename of a Protocol Buffer file, and returns an object representing the structure of the protocol buffer in the following way:
service
member that can be used for constructing servers.function loadObject(reflectionObject)
Returns the same structure that load
returns, but takes a reflection object from ProtoBuf.js
instead of a file name.
function Server([serverOpions])
Constructs a server to which service/implementation pairs can be added.
status
An object mapping status names to status code numbers.
callError
An object mapping call error names to codes. This is primarily useful for tracking down certain kinds of internal errors.
Credentials
An object with factory methods for creating credential objects for clients.
ServerCredentials
An object with factory methods for creating credential objects for servers.
FAQs
this zero-dependency package will download and install the grpc-v1.0.1 prebuilt-binary from https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc
The npm package grpc-lite receives a total of 7 weekly downloads. As such, grpc-lite popularity was classified as not popular.
We found that grpc-lite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.