Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
CLI tools for serve supple mock server with random fake data using Faker.js
CLI tools for serve supple mock server with random fake data using Faker.js
Setup smockr
$ npm install --global smockr
Running mock with default params
$ smockr
Running mock with custom params
$ smockr \
--port 3000 \
--secret "mysecret" \
--allowOrigin "*.kitabisa.com,*.kitajaga.id" \
--allowMethods "GET,POST,PATCH" \
--allowHeaders "Content-Type,Authorization"
See a list of all available options
$ smockr --help
See a installed version
$ smockr --version
Specify a search body param to retrieve a response with that body.
GET http://localhost:8080/?mock\[response\]\[body\]={"ping":"pong"}
HTTP/1.1 200 OK
content-type: application/json
content-length: 15
{"ping":"pong"}
Specify a search status param get back that code status. The status must be inside the range 200 to 599.
GET http://localhost:8080/?mock\[response\]\[status\]=301
HTTP/1.1 301 Moved Permanently
content-type: application/json
content-length: 0
Specify a search header param as json string to get them back.
GET http://localhost:8080/?mock\[response\]\[headers\]={"x-hello":"world"}
HTTP/1.1 200 OK
x-hello: world
content-length: 0
Specify a search delay param in milliseconds in order to delay the response.
GET http://localhost:8080/?mock\[response\]\[delay\]=3000
Specify a search schema validation in json schema (stringify) to set request body validations.
GET http://localhost:8080/?mock\[request\]\[body\]\[schema\]=${{ stringify json schema }}
FAQs
CLI tools for serve supple mock server with random fake data using Faker.js
The npm package smockr receives a total of 0 weekly downloads. As such, smockr popularity was classified as not popular.
We found that smockr demonstrated a healthy version release cadence and project activity because the last version was released less than 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.