ampscript-data 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/package.json +1 -1
- package/src/index.js +2141 -671
package/README.md
CHANGED
|
@@ -169,10 +169,16 @@ getMcnNotes('ProperCase'); // null
|
|
|
169
169
|
|
|
170
170
|
### `AMPSCRIPT_KEYWORDS`
|
|
171
171
|
|
|
172
|
-
An array of AMPscript language
|
|
172
|
+
An array of AMPscript language keyword descriptors (`if`, `for`, `set`, etc.). Each entry carries a short description and a completion snippet with `${n:placeholder}` tab stops:
|
|
173
173
|
|
|
174
174
|
```js
|
|
175
175
|
import { AMPSCRIPT_KEYWORDS } from 'ampscript-data';
|
|
176
|
+
|
|
177
|
+
for (const kw of AMPSCRIPT_KEYWORDS) {
|
|
178
|
+
console.log(kw.name); // e.g. 'if'
|
|
179
|
+
console.log(kw.description); // human-readable description
|
|
180
|
+
console.log(kw.snippet); // completion body, e.g. 'if ${1:condition} then\n\t${2}\nendif'
|
|
181
|
+
}
|
|
176
182
|
```
|
|
177
183
|
|
|
178
184
|
### `PERSONALIZATION_STRINGS`
|