🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

jsonbin

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonbin

CLI and package for jsonbin.org

latest
Source
npmnpm
Version
1.4.1
Version published
Maintainers
1
Created
Source

Usage:

$ jsonbin [options] [property[=value]]

Options:

--token [api-token] ... your jsonbin.org token
--delete .............. delete a property
--append .............. append/merge

All options can also be abbreviated.

Examples:

You can authenticate using two methods:

$ jsonbin --token 1234-5678
$ JSONBIN_TOKEN=1234-5678 jsonbin

Using an environment variable means it can be in your private enviroment.

GET all of the store:

$ jsonbin
> { … }

Retrieve a deep property from { blog: urls: [ ... ] }

$ jsonbin blog.urls.0
> "https://…"

Delete a property:

$ jsonbin --delete blog.urls.0
> "https://" # returns deleted value

Set a new property:

$ jsonbin blog="{ url: … }"
> { url: … } # returns new value

Using JSON merge patch, you can remove properties using null:

$ jsonbin blog="{ url: null }"
> { … } # returns updated value

Note that jsonbin will try to detect a JavaScript object and convert it to JSON for you.

For more information see https://jsonbin.org

FAQs

Package last updated on 17 Nov 2017

Did you know?

Socket

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.

Install

Related posts