1.0.11 • Published 1 year ago

pushpulljs v1.0.11

Weekly downloads
11
License
MIT
Repository
github
Last release
1 year ago

PushPull

npm version CI Main

Convenience tool to make your files' content flexible.

Install

npm install pushpulljs --save-dev

Usage

usage: pushpull '<files>' [<options>] [<directives>]

options:
  --silent             disable logging

directives:
  --push '<marker>'    push all instances of marker on the start of any line to the end
  --pull '<marker>'    pull all instances of marker from the end of any line to the start
  --switch '<marker>'  apply both push and pull in one pass
  --on '<marker>'      alias for push
  --off '<marker>'     alias for pull

examples:
  pushpull '.npmrc' --on '#WRITE_LOCK'
  pushpull '**/*.js' --pull '//DEBUG'
  pushpull 'config/**/*.yaml' 'config/**/.*rc' --silent --off '#OPTIONAL*'

For examples see USAGE.md.

Notes

  • quoting <files> and <marker> helps to be compatible across platforms
  • <directives> are applied in the order they are given
  • <files> expands * wildcards with a simplified glob logic
    • **/ matches all subdirectories
    • *.* matches all files, including those starting with .
    • *.ext matches files with the extension .ext
    • name.* matches files with the basename name
  • <files> works with both absolute and relative paths
  • <files> will never expand into directories named node_modules or .git
  • <marker> expands * wildcards to cover non-whitespace
  • <marker> can contain literal star * characters by using \*
  • <marker> can contain literal backslash \ characters by using \\
1.0.11

1 year ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago