
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Provider should only support .js
. .js
support is to allow user generate some random data on the fly, like user registration scenario that requires fresh email account every time.
Each .js
data file should return a json object.
${DPRO}.js : main test data
${DPRO_INST}.js : (optional) extra data that only applies to certain instance
${REPO_ROOT}/config/data
# file location can be changed by using
${DPRO_LOCATION}
# to only load from ${REPO_ROOT}/config/data/local.js
DPRO=local ./node_modules/.bin/magellan --test xxxxx ......
# to only load from ${REPO_ROOT}/config/data/prod-a.js
DPRO=prod-a ./node_modules/.bin/magellan --test xxxxx ......
# change file location to ${REPO_ROOT}/config/staging.js
DPRO_LOCATION="./config/" DPRO=staging ./node_modules/.bin/magellan --test xxxxx ......
# load both ${REPO_ROOT}/config/data/staging.js and ${REPO_ROOT}/config/data/staging-2.js
# config in staging-2.js will be used if common config exists.
DPRO=staging DPRO_INST=2 ./node_modules/.bin/magellan --test xxxxx ......
/** data file
*{
* "beijing": {
* "name": "Beijing",
* "country": "China",
* "description": "It is the most populous city in the China"
* },
* "timestamp": function () {
* return new Date().getTime();
* }
*}
*/
var td = require("dpro");
console.log(td.beijing, td.beijing.description);
console.log(td.timestamp());
Documentation in this project is licensed under Creative Commons Attribution 4.0 International License. Full details available at https://creativecommons.org/licenses/by/4.0
FAQs
data provider for testarmada
The npm package dpro receives a total of 4 weekly downloads. As such, dpro popularity was classified as not popular.
We found that dpro demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.