npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

js0n

v1.0.5

Published

js0n is a testing platform for services utilizing JavaScript Object Notation (JSON)

Downloads

9

Readme

image

js0n is a testing platform for services utilizing JavaScript Object Notation (JSON)

Dependency Status devDependency Status npm version npm downloads NPM

#Services

Echo JSON

Returns a customized JSON object that you can define through a REST-style URL. For example, calling https://js0n.herokuapp.com/echo?name=omer&id=2&project=js0n will return the following JSON:

{
	name: "omer",
	id: "2",
	project: "js0n"
}

Endpoint: https://js0n.herokuapp.com/echo?name=omer&id=2&project=js0n

Echo JSON

Headers

Returns the HTTP request headers received from the client.

{
	host: "localhost:3000",
	connection: "keep-alive",
	accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
	upgrade-insecure-requests: "1",
	user-agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like 	Gecko) Chrome/40.0.2454.101 Safari/537.39",
	accept-encoding: "gzip, deflate, sdch",
	accept-language: "en-US,en;q=0.8",
	cookie: "wm-ueug="3c12cd2e-912d-b642-857c-2acd37e535464"",
	if-none-match: "W/"1b8-BNvdbtFq5G8GN3K68Ae5tg""
}

Endpoint: https://js0n.herokuapp.com/headers

Headers

Date & Time

Returns a JSON object with the current date and time in human-readable form, and the current number of milliseconds since epoch (The Unix epoch (is the number of seconds that have elapsed since January 1, 1970).

{
	date: "Mon Oct 12 2015",
	time: "10:38:37 PM",
	milliseconds_since_epoch: 1444678717275
}

Endpoint: https://js0n.herokuapp.com/date

Echo JSON

Validation

Validates a given JSON object.

Valid JSON:

{
	validate: true,
	original: "{"name":"omer", "id": 1234567}",
	size: 2
}

Endpoint: https://js0n.herokuapp.com/validate/{"name":"omer","id":1234567}

Validation

Invalid JSON:

{
	validate: false,
	original: "notJson",
	error_info: "not a valid JSON"
}

Endpoint: https://js0n.herokuapp.com/validate/notJson

Validation

MD5

Returns the MD5 hash code of a given string. To use, call https://js0n.herokuapp.com/md5/textText, where example_text is the text that you want the MD5 hash for. For example, the above request would return:

{
	md5: "fa4c6baa0812e5b5c80ed8885e55a8a6",
	original: "example_text"
}

Endpoint: http://js0n.herokuapp.com/md5/textText

MD5

Methods

Platform support both GET/POST methods