
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@particle/device-constants
Advanced tools
static device identifiers and meta-data for Particle hardware
The static device identifiers and meta-data for Particle hardware.
This project contains the constants as well as very lightweight wrappers around the constants and enables publishing them as NPM modules and Ruby Gems. All languages' libraries follow the same versioning scheme.
Installation | Development | Releasing
node@16.x
and npm@8.x
are required]$ git clone git@github.com:particle-iot-inc/device-constants.git && cd ./device-constants
$ npm install
@particle
org (docs)$ npm run
$ npm test
The Device Constants repo contains static specs for official Particle platform devices and the tooling to support publishing a series of language-specific packages with that data. All essential commands are available via npm run <script name>
- e.g. npm run lint
. To view the available commands, run: npm run
To add a new Particle platform device, simply:
src/constants.json
file in your favorite code editor"example": {
"id": <integer - the unique identifier>,
"name": <string - the unique name used by Device OS' build system>,
"displayName": <string - human-facing platform name>,
"generation": <integer - e.g. `2` for photon, `3` for boron, `4` for p2>,
"features": <array of strings - the features supported e.g. `wifi`, `ble`>,
"billingConnectivity": <string for where data ops for this device type should be counted e.g. `wifi`, or `cellular``>,
"public": <boolean - whether or not the platform is available to end-users>
},
NOTE: See src/constants.schema.json
for latest field definitions
npm run validate
git add -p && git commit
Constants data must adhere to the JSON Schema (https://json-schema.org) specs in src/constants.schema.json
. In some cases, you may need to extend the current schema to support addition properies, etc. To do that:
src/constants.schema.json
file in your favorite code editornpm run validate
git add -p && git commit
See the src/ruby/README.md
file for more info on the Ruby Gem wrapper.
Packages are only released from the main
branch after peer review.
$ git checkout main
$ git pull
$ npm test
$ npm run release
$ git push origin main --follow-tags
FAQs
static device identifiers and meta-data for Particle hardware
The npm package @particle/device-constants receives a total of 880 weekly downloads. As such, @particle/device-constants popularity was classified as not popular.
We found that @particle/device-constants demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.