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

impostr

v0.2.1

Published

Impostr helps you keep track of who's who and what's what. Simple caching tool for checking for file changes over time.

Downloads

1

Readme

Impostr

Simple and fast caching tool for tracking file changes on node.

npm version

var impostr = require('impostr');
var cache = impostr();

cache.trackFiles('./document-library/**/*', function () { cache.persist() });

// Files change over time....

console.log(cache.updateLibrary());
// [ './document-library/august/changed-file',
//   './document-library/another-changed-file' ]

Installation

npm install impostr

Contributing

Development Prerequisites

Here's what you'll need installed on your development machine:

  • Node.js (We prefer the latest LTS, but any stable version should work.)
  • Yarn (Optional but recommended - see below.)
  • Git

Initializing Environment

The first step in installing the API for local testing is cloning the code from the Git repository:

git clone https://github.com/cgatno/impostr.git

We recommend using Yarn to restore Node.js packages necessary for development and testing:

cd impostr
yarn

Yarn is much faster and more data-efficient than NPM, but if you'd rather stick to the traditional method, you can replace yarn with npm anywhere you see it used. (Note that you'll have to use npm install as opposed to just npm to restore packages.)

That's it! You're ready to move on to building the code now.

Building

This project uses Gulp.js to define and run build tasks. The primary build task for the API is simply transpiling ES2015 JavaScript to ES5 JavaScript so that it can run in a variety of Node.js environments. We use Babel for all transpilation.

Our Gulp pipeline is linked with a NPM script, so all you need to do to build the code is run:

yarn run build

You can also run Gulp build tasks individually if you'd like. The primary Gulp build task can be started with gulp build. A more detailed listing of Gulp build tasks will be in this section soon!

Source Code Guidelines

In general, this project follows a traditional Node.js project structure and uses some well-established code style and source control guidelines. Be sure any code you submit for inclusion in the project conforms to these guidelines!

File structure

All source code is written in ES2015 JavaScript and goes in src/. Our build pipeline transpiles this code to ES5 specific to your current Node version and places it in build/.

Code Style

All JavaScript code is checked for syntax and API standards according to the airbnb JavaScript style guide. Specifically, we use ESLint and the eslint-config-airbnb-base package for code linting.

You can manually lint the source code at any time using an NPM script:

yarn run lint

or Gulp:

gulp lint

Note about code style guidelines

We're definitely open to making modifications to our style guidelines. In fact, our ESLint config only extends the airbnb config. We've already made some customizations ourselves!

The best way to get the rules changed is by simply breaking them! Submit a pull request with code that doesn't pass linting via yarn run lint and explain why you think it should. If we can come to a consensus, we'll modify our rules accordingly.

Source Control

We use Git for source control and the Gitflow methodology for managing branching, pull requests, and releases.

Tests

Right now, there's just a rudimentary test set up in /test. Official and useful unit testing coming soon!

Roadmap

Upcoming changes:

(In order of priority)

  • Unit testing
  • Support for more file metadata - date changed, changed by, etc.

License

This project is licensed under the MIT license.

Contributors

Huge thanks to this team of direct contributors for writing the code!

Built With

This project couldn't exist without the following amazing software:

(In alphabetical order to avoid favoritism) 😉