Displaying 1 to 20 from 72 results

query-string - Parse and stringify URL query strings

  •    Javascript

🔥 Want to strengthen your core JavaScript skills and master ES6? I would personally recommend this awesome ES6 course by Wes Bos. You might also like his React course.Parse a query string into an object. Leading ? or # are ignored, so you can pass location.search or location.hash directly.

cson - CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.

  •    CoffeeScript

CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.Projects using CSON.

lave - eval in reverse: stringifying all the stuff that JSON.stringify won't

  •    Javascript

lave is eval in reverse; it does for JavaScript what JSON.stringify does for JSON, turning an arbitrary object in memory into the expression, function, or ES6 module needed to create it. JSON is great data transport, but can only handle a subset of the objects expressible in a JavaScript runtime. This usually results in lossy serializations at best, and TypeError: Converting circular structure to JSON at worst. While we can get around such issues by writing JavaScript code to parse this JSON back into the structures we want, now we have to ship that code out of band, which can be a headache.

json3 - A JSON polyfill. Looking for new maintainers.

  •    Javascript

JSON 3 is a JSON polyfill for older JavaScript platforms. The current version is 3.3.2. Special thanks to cdnjs and jsDelivr for hosting CDN copies of JSON 3.




qs - A querystring parser with nesting support

  •    Javascript

A querystring parsing and stringifying library with some added security. The qs module was originally created and maintained by TJ Holowaychuk.

node-csv - Full featured CSV parser with simple api and tested against large datasets.

  •    Javascript

This project provides CSV generation, parsing, transformation and serialization for Node.js. It has been tested and used by a large community over the years and should be considered reliable. It provides every option you would expect from an advanced CSV parser and stringifier.

fast-json-stringify - 2x faster than JSON.stringify()

  •    Javascript

fast-json-stringify is significantly faster than JSON.stringify() for small payloads. Its performance advantage shrinks as your payload grows. It pairs well with flatstr, which triggers a V8 optimization that improves performance when eventually converting the string to a Buffer. Build a stringify() function based on jsonschema.

json-stable-stringify - deterministic JSON

  •    Javascript

You can also pass in a custom comparison function.Return a deterministic stringified string str from the object obj.


mark - A simple and unified notation for both object data, like JSON, and markup data, like HTML and XML

  •    Javascript

Objective Markup Notation, abbreviated as Mark Notation or just Mark, is a new unified notation for both object and markup data. The notation is a superset of what can be represented by JSON, HTML and XML, but overcomes many limitations these popular data formats, yet still having a very clean syntax and simple data model. The major syntax extension Mark makes to JSON is the introduction of a Mark object. It is a JSON object extended with a type name and a list of content items, similar to element in HTML and XML.

url-parse - Small footprint URL parser that works seamlessly across Node

  •    Javascript

The url-parse method exposes two different API interfaces. The url interface that you know from Node.js and the new URL interface that is available in the latest browsers.In version 0.1 we moved from a DOM based parsing solution, using the <a> element, to a full Regular Expression solution. The main reason for this was to make the URL parser available in different JavaScript environments as you don't always have access to the DOM. An example of such environment is the Worker interface. The RegExp based solution didn't work well as it required a lot of lookups causing major problems in FireFox. In version 1.0.0 we ditched the RegExp based solution in favor of a pure string parsing solution which chops up the URL into smaller pieces. This module still has a really small footprint as it has been designed to be used on the client side.

url-pattern - easier than regex string matching patterns for urls and other strings

  •    CoffeeScript

easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.a pattern is immutable after construction. none of its methods changes its state. that makes it easier to reason about.

jsesc - Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data

  •    Javascript

For any input, jsesc generates the shortest possible valid printable-ASCII-only output. Here’s an online demo.jsesc’s output can be used instead of JSON.stringify’s to avoid mojibake and other encoding issues, or even to avoid errors when passing JSON-formatted data (which may contain U+2028 LINE SEPARATOR, U+2029 PARAGRAPH SEPARATOR, or lone surrogates) to a JavaScript parser or an UTF-8 encoder.

circular-json - JSON does not handle circular references. Now it does

  •    Javascript

Serializes and deserializes otherwise valid JSON objects containing circular references into and from a specialized JSON format. There are no dependencies.

json-stringify-safe - Like JSON.stringify, but doesn't throw on circular references

  •    Javascript

Like JSON.stringify, but doesn't throw on circular references. Takes the same arguments as JSON.stringify.

kamino

  •    Javascript

A library for passing data structures between sandboxed environments in the browser via postMessage.

html-stringify - Converts Javascript Objects or Arrays to pretty HTML

  •    Javascript

Converts Javascript Objects or Arrays to pretty HTML string for rendering in a browser

write-pkg - Write a package.json file

  •    Javascript

Writes atomically and creates directories for you as needed. Sorts dependencies when writing. Preserves the indentation if the file already exists.Returns a Promise.