pudding-context
v3.0.2
Published
Context for pudding
Downloads
19
Readme
pudding-context
Context for pudding
Installation
npm install pudding-context --save
Usage
Define a Context
Build-in Variables
Modules Available in Expression Scope
These module are exposed in expression scope.
Functions Available in Expression Scope
| Key | Description | Example |
| --- | ---- | ---- |
| camelcase(value) | Equivalent to stringcase.camelcase()
| "fooBarBaz" |
| capitalcase(value) | Equivalent to stringcase.capitalcase()
| "FooBarBaz" |
| constcase(value) | Equivalent to stringcase.constcase()
| "FOO_BAR_BAZ" |
| decapitalcase(value) | Equivalent to stringcase.decapitalcase()
| "fooBarBaz" |
| enumcase(value) | Equivalent to stringcase.enumcase()
| "foo:bar:baz" |
| lowercase(value) | Equivalent to stringcase.lowercase()
| "foobarbaz" |
| pascalcase(value) | Equivalent to stringcase.pascalcase()
| "FooBarBaz" |
| pathcase(value) | Equivalent to stringcase.pathcase()
| "foo/bar/baz" |
| sentencecase(value) | Equivalent to stringcase.sentencecase()
| "Foo bar baz" |
| snakecase(value) | Equivalent to stringcase.snakecase()
| "foo_bar_baz" |
| spacecase(value) | Equivalent to stringcase.spacecase()
| "foo bar baz" |
| spinalcase(value) | Equivalent to stringcase.spinalcase()
| "foo-bar-baz" |
| titlecase(value) | Equivalent to stringcase.titlecase()
| "Foo Bar Baz" |
| trimcase(value) | Equivalent to stringcase.trimcase()
| "fooBarBaz" |
| uppercase(value) | Equivalent to stringcase.uppercase()
| "FOOBARBAZ" |
| randomBool() | Equivalent to randomval.randomBool()
| "true" |
| randomDate() | Equivalent to randomval.randomDate()
| "Wed Jan 04 2017 19:49:24 GMT+0900 (JST)" |
| randomHash() | Equivalent to randomval.randomHash()
| "ded218a7edbf483095ca2c53819960f0" |
| randomInt() | Equivalent to randomval.randomInt()
| "-1594093391203980" |
| random() | Equivalent to randomval.random()
| "0.06014802945197384" |
License
This software is released under the MIT License.