modifiled
Detects files changed from parent branch and returns a list of non-removed files
Last updated 2 years ago by bradyhanna .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install modifiled 
SYNC missed versions from official npm registry.

modifiled

Gets a list of files changed from parent branch

Install

npm install modifiled

Example Usage

JavaScript

const modifiled = require('modifiled');

const config = { 
    vcs: 'Mercurial', 
    ext: ['ts'],
    suppressOutput: false 
};
const files = modifiled('/Users/brady/mercurial-dir', config);

TypeScript

import { modifiled, Config } from 'modifiled';

const config: Config = {
     vcs: 'Mercurial', 
     ext: ['ts'],
     suppressOutput: false  
 };
const files = modifiled('/Users/brady/mercurial-dir', config);

Api

modifiled(directory, [config]);

directory

Specify the absolute path (as a string) of the directory to be analysed

config

Modifiled can take in an optional config object

Default config
const defaultConfig: Config = {
    vcs: 'Unknown',
    ext: [],
    suppressOutput: false 
};

vcs: 'Mercurial', 'Git' or 'Unknown'

ext: file extension such as 'ts' or 'js'

suppressOutput: if the execution will printout information to console.log

Current Tags

  • 0.1.2                                ...           latest (2 years ago)

10 Versions

  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (7)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |