Giter Club home page Giter Club logo

getpackages's Introduction

Get packages NPM version Build Status Dependency Status

Version: 6.0.4

Yii 1/2 Packages command Node.js wrapper

Installation

Run npm install get-packages

Usage

var gp = require('get-packages').init();

API

gp.init([options])

Options

Type: String | Object

options.applicationPath
  • Type: String
  • Default: protected
options.yiiPackagesCommand
  • Type: String
  • Default: yiic packages
options.isAbsoluteCommandPath
  • Type: Boolean
  • Default: true
options.verbose
  • Type: Boolean
  • Default: false

Methods

  • gp.init(options)
  • gp.get()
  • gp.getPackagesDistPath()
  • gp.getPackagesDistPathWithoutImageDir()
  • gp.getStylesPaths()
  • gp.getStylesPathsByFilepath(filepath, glob)
  • gp.getStylesSourcePath()
  • gp.getStylesSourcePathWithGlob(glob)
  • gp.getScriptsSourcePath()
  • gp.getScriptsSourcePathWithoutFile()
  • gp.getScriptsSourcePathWithGlob(glob)
  • gp.getScriptsSourcePathBeforeTranspiling()
  • gp.getScriptsSourcePathBeforeTranspilingWithGlob(glob)
  • gp.getScriptsToBuild()
  • gp.getScriptsToTranspiling()
  • gp.getImagesPaths()
  • gp.getImagesSourcePath()
  • gp.getImagesSourcePathWithGlob(glob)
  • gp.getFontsPaths()
  • gp.getOtherPaths()
  • gp.getExtraParamsByModule(module)
  • gp.getCustomPaths(key)
  • gp.getCustomPathsWithGlob(key)

Backward compatible methods

  • gp.getCssPaths(filepath, glob)
  • gp.getAllCssPath(glob)
  • gp.getAllJsFile()
  • gp.getAllDistPaths()
  • gp.getBuildJs()
  • gp.getImagePaths()
  • gp.getAllImagePaths(glob)
  • gp.getFontPaths()

Utilities

  • gp.util.match(filepaths, patterns, options)

Requirement

  • Yii 1/2 Packages command

License

MIT © 2021 Gergely Kovács ([email protected])

getpackages's People

Contributors

ggkovacs avatar greenkeeperio-bot avatar dependabot[bot] avatar

Stargazers

Mangabo  Kolawole avatar qiutian00 avatar ZebulonEdwardBubbel avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

getpackages's Issues

Potential command injection vulnerability in get-packages

Hi,

We would like to report a potential security vulnerability.
The bug is introduced because the package-exported method init() fails to sanitize its parameter and lets it flow into a sensitive command execution API.

Here is the proof of concept.

var gp = require("get-packages")
gp.init(";touch rce;") // a file named rce will be created

Please consider fixing it. thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.