This package has been deprecated

Author message:

never support mili@4

@mili-handlers/additional-property

1.0.1 • Public • Published

@mili-handlers/additional-property

version downloads license dependencies coveralls

The mili handler used to add property to file.addition.

Usage

import addAdditionalProperty from '@mili-handlers/additional-property'

const rules = {
  path: 'path_to_file',
  handlers: [
    // file.addition.key = 'values'
    addAdditionalProperty('key', 'values'),
    // file.addition.notProd = !resource.anwsers.isProd
    addAdditionalProperty('notProd', ({ anwsers }) => !anwsers.isProd),
    'mustache',
  ],
}

Sponsor

Support code development on patron.

patron

Contributing & Development

If there is any doubt, it is very welcome to discuss the issue together. Please read Contributor Covenant Code of Conduct and CONTRIBUTING.

Package Sidebar

Install

npm i @mili-handlers/additional-property

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

49 kB

Total Files

18

Last publish

Collaborators

  • val.istar.guo