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

reload-form

v1.1.0

Published

Really Efficient List Of Arbitrary Data

Downloads

3

Readme

Implements the RELOAD (Really Efficient List Of Arbitrary Data) format as
used in OHRRPGCE (but you may use it in other programs too). Currently
version 1 of RELOAD is implemented. (If you want to read or write OHRRPGCE
files, you should look at my "hamarc" package too.)

This program is public domain.

This module exports a constructor called RELOAD, which constructs a RELOAD
document object. It takes one optional argument which is a buffer which
contains a serialized RELOAD document (possibly read from a file or from a
Hamster archive), which will then be loaded.

The properties of the instance are:

.add([name],[value],[enc])
  Add a new child node with the given name and value; return new node. You
  can specify a string as a value; if you do, it will automatically
  convert the string into a buffer; default encoding is "binary".

.append(doc)
  Append a child node, which must be one that already exists (you can use
  new RELOAD() to create one) that is not currently attached.

.children
  An array of child elements. You can alter the contents of this array; if
  you do you should ensure the parent is going to be set properly.

.delete()
  Delete this node. Cannot delete the root node. After it is deleted from
  the document it belongs to, you may append it as a child to another node
  in the same or a different document.

.evaluate([rpath])
  Evaluate a RPath expression. Returns a generator that yields them. Will
  yield all nodes (including the root) if the RPath expression is omitted.
  If you pass in numbers or strings for each next() call, then the final
  return value will be the sum of these number or concatenate of strings.
  Warning: The specification of RPath is not yet written and there is
  currently no guarantee of what the implementation will return if any
  argument is given at all!

.name
  The name of this element (a string).

.parent
  The parent node (null if it is the root node). Set this if you are
  adding a child node by altering the children array by yourself.

.serialize()
  Serialize this document into a buffer.

.value
  The value of this element, which is null, a number, or a buffer.

Note: The full range of 64-bit integers is not supported in JavaScript.
When writing a number that can't fit as a 32-bit integer, codes as a
double-precision floating-point number. Loading a 64-bit integer may
result in an improper value if the number to load is greater than
9007199254740991 or less than -9007199254740991.