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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ldr-stepper

v0.1.3

Published

Break an LDraw (LDR) file into steps

Readme

ldr-stepper Build Status

Break an LDraw (LDR) file into steps

This tool can help you create a base from which to work from when building instructions from an LDraw .ldr file.

It works by sorting on the coordinate of each piece (x, y, or z-axis), then inserts "steps" as you specify. Using the default axis, y, will result in steps which start at the "bottom" of the model, continuing to the "top". Likewise, you can change the dimension to x to start at the "top" and work your way down, or start at the "back" and work towards the "front" with the z-axis.

Don't expect the output of this tool to generate proper instructions for you. It just gives you a starting point.

Install

  1. Install NodeJS v0.10 or greater.

  2. Install globally with npm:

$ npm install -g ldr-stepper

Usage

ldr-stepper [options] <file.ldr>

Options:
  --version     Show version number                                    [boolean]
  --output, -o  Output file; if unspecified, will output to STDOUT      [string]
  --pieces, -p  Number of pieces per step                          [default: 10]
  --steps, -s   Maximum number of steps.  Overrides --pieces
  --axis, -a    Axis on which to sort pieces
                                         [choices: "x", "y", "z"] [default: "y"]
  --force       Overwrite any file specified by --output        [default: false]
  --help, -h    Show help                                              [boolean]

Notes

  • This tool ignores any data in the .ldr file that isn't a subfile reference (doesn't begin with 1). See the specification for details. This means the output will lose any metadata.
  • Using --steps is somewhat slower that not using --steps.
  • You can conceivably use this tool on a .dat or .mpd file, but I don't know why you'd want to.
  • The tool outputs a file with Windows (\r\n) line endings, as per the specification.
  • This module can also be used programmatically. It exports a function, generateSteps(filepath, opts). For details, see the source.

License

© 2015 Christopher Hiller. Licensed MIT.