This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@static-pages/incremental

0.0.1 • Public • Published

Incremental build helper

Helps you decide if a file is newer than the last build time. This tool is made to reduce the repetitive work on the reader implementations.

Usage

import { IncrementalHelper } from '@static-pages/incremental';

const filesSpace = '/path/to/pages/**/*.md';
const incrementalFile = __dirname + '/buildinfo.json';

const incremental = new IncrementalHelper(filesSpace, incrementalFile);

const file = '/path/to/pages/my-markdown-file.md';

incremental.isNew(file) // boolean

incremental.fstat // cached fstat data of the `file`

Notes

It creates a JSON file that tracks last execution times. Defaults to .incremental in the current working directory; can be customized with the second parameter of the constructor.

Package Sidebar

Install

npm i @static-pages/incremental

Weekly Downloads

0

Version

0.0.1

License

MPL-2.0

Unpacked Size

11 kB

Total Files

5

Last publish

Collaborators

  • laszlo87
  • lionel87