twitst4tz

twitter statistics web application
Log | Files | Refs | README | LICENSE

package.json (11728B)


      1 {
      2   "_from": "ejs@^3.0.1",
      3   "_id": "ejs@3.0.1",
      4   "_inBundle": false,
      5   "_integrity": "sha512-cuIMtJwxvzumSAkqaaoGY/L6Fc/t6YvoP9/VIaK0V/CyqKLEQ8sqODmYfy/cjXEdZ9+OOL8TecbJu+1RsofGDw==",
      6   "_location": "/ejs",
      7   "_phantomChildren": {},
      8   "_requested": {
      9     "escapedName": "ejs",
     10     "fetchSpec": "^3.0.1",
     11     "name": "ejs",
     12     "raw": "ejs@^3.0.1",
     13     "rawSpec": "^3.0.1",
     14     "registry": true,
     15     "saveSpec": null,
     16     "type": "range"
     17   },
     18   "_requiredBy": [
     19     "#USER",
     20     "/"
     21   ],
     22   "_resolved": "https://registry.npmjs.org/ejs/-/ejs-3.0.1.tgz",
     23   "_shasum": "30c8f6ee9948502cc32e85c37a3f8b39b5a614a5",
     24   "_shrinkwrap": null,
     25   "_spec": "ejs@^3.0.1",
     26   "_where": "/Users/underd0g/Documents/javascript/TwitWebGraph",
     27   "author": {
     28     "email": "mde@fleegix.org",
     29     "name": "Matthew Eernisse",
     30     "url": "http://fleegix.org"
     31   },
     32   "bugs": {
     33     "url": "https://github.com/mde/ejs/issues"
     34   },
     35   "bundleDependencies": false,
     36   "dependencies": {},
     37   "deprecated": false,
     38   "description": "Embedded JavaScript templates",
     39   "devDependencies": {
     40     "browserify": "^13.1.1",
     41     "eslint": "^4.14.0",
     42     "git-directory-deploy": "^1.5.1",
     43     "jake": "^10.3.1",
     44     "jsdoc": "^3.4.0",
     45     "lru-cache": "^4.0.1",
     46     "mocha": "^5.0.5",
     47     "uglify-js": "^3.3.16"
     48   },
     49   "engines": {
     50     "node": ">=0.10.0"
     51   },
     52   "homepage": "https://github.com/mde/ejs",
     53   "keywords": [
     54     "ejs",
     55     "engine",
     56     "template"
     57   ],
     58   "license": "Apache-2.0",
     59   "main": "./lib/ejs.js",
     60   "name": "ejs",
     61   "optionalDependencies": {},
     62   "readme": "# EJS\n\nEmbedded JavaScript templates\n\n[![Build Status](https://img.shields.io/travis/mde/ejs/master.svg?style=flat)](https://travis-ci.org/mde/ejs)\n[![Developing Dependencies](https://img.shields.io/david/dev/mde/ejs.svg?style=flat)](https://david-dm.org/mde/ejs?type=dev)\n[![Known Vulnerabilities](https://snyk.io/test/npm/ejs/badge.svg?style=flat)](https://snyk.io/test/npm/ejs)\n\n## Installation\n\n```bash\n$ npm install ejs\n```\n\n## Features\n\n  * Control flow with `<% %>`\n  * Escaped output with `<%= %>` (escape function configurable)\n  * Unescaped raw output with `<%- %>`\n  * Newline-trim mode ('newline slurping') with `-%>` ending tag\n  * Whitespace-trim mode (slurp all whitespace) for control flow with `<%_ _%>`\n  * Custom delimiters (e.g., use `<? ?>` instead of `<% %>`)\n  * Includes\n  * Client-side support\n  * Static caching of intermediate JavaScript\n  * Static caching of templates\n  * Complies with the [Express](http://expressjs.com) view system\n\n## Example\n\n```ejs\n<% if (user) { %>\n  <h2><%= user.name %></h2>\n<% } %>\n```\n\nTry EJS online at: https://ionicabizau.github.io/ejs-playground/.\n\n## Usage\n\n```javascript\nlet template = ejs.compile(str, options);\ntemplate(data);\n// => Rendered HTML string\n\nejs.render(str, data, options);\n// => Rendered HTML string\n\nejs.renderFile(filename, data, options, function(err, str){\n    // str => Rendered HTML string\n});\n```\n\nIt is also possible to use `ejs.render(dataAndOptions);` where you pass\neverything in a single object. In that case, you'll end up with local variables\nfor all the passed options. However, be aware that your code could break if we\nadd an option with the same name as one of your data object's properties.\nTherefore, we do not recommend using this shortcut.\n\n## Options\n\n  - `cache`                 Compiled functions are cached, requires `filename`\n  - `filename`              The name of the file being rendered. Not required if you\n    are using `renderFile()`. Used by `cache` to key caches, and for includes.\n  - `root`                  Set project root for includes with an absolute path (/file.ejs).\n  - `context`               Function execution context\n  - `compileDebug`          When `false` no debug instrumentation is compiled\n  - `client`                When `true`, compiles a function that can be rendered\n    in the browser without needing to load the EJS Runtime\n    ([ejs.min.js](https://github.com/mde/ejs/releases/latest)).\n  - `delimiter`             Character to use with angle brackets for open/close\n  - `debug`                 Output generated function body\n  - `strict`                When set to `true`, generated function is in strict mode\n  - `_with`                 Whether or not to use `with() {}` constructs. If `false`\n    then the locals will be stored in the `locals` object. Set to `false` in strict mode.\n  - `destructuredLocals`    An array of local variables that are always destructured from\n    the locals object, available even in strict mode.\n  - `localsName`            Name to use for the object storing local variables when not using\n    `with` Defaults to `locals`\n  - `rmWhitespace`          Remove all safe-to-remove whitespace, including leading\n    and trailing whitespace. It also enables a safer version of `-%>` line\n    slurping for all scriptlet tags (it does not strip new lines of tags in\n    the middle of a line).\n  - `escape`                The escaping function used with `<%=` construct. It is\n    used in rendering and is `.toString()`ed in the generation of client functions.\n    (By default escapes XML).\n  - `outputFunctionName`    Set to a string (e.g., 'echo' or 'print') for a function to print\n    output inside scriptlet tags.\n  - `async`                 When `true`, EJS will use an async function for rendering. (Depends\n    on async/await support in the JS runtime.\n\nThis project uses [JSDoc](http://usejsdoc.org/). For the full public API\ndocumentation, clone the repository and run `npm run doc`. This will run JSDoc\nwith the proper options and output the documentation to `out/`. If you want\nthe both the public & private API docs, run `npm run devdoc` instead.\n\n## Tags\n\n  - `<%`              'Scriptlet' tag, for control-flow, no output\n  - `<%_`             'Whitespace Slurping' Scriptlet tag, strips all whitespace before it\n  - `<%=`             Outputs the value into the template (escaped)\n  - `<%-`             Outputs the unescaped value into the template\n  - `<%#`             Comment tag, no execution, no output\n  - `<%%`             Outputs a literal '<%'\n  - `%%>`             Outputs a literal '%>'\n  - `%>`              Plain ending tag\n  - `-%>`             Trim-mode ('newline slurp') tag, trims following newline\n  - `_%>`             'Whitespace Slurping' ending tag, removes all whitespace after it\n\nFor the full syntax documentation, please see [docs/syntax.md](https://github.com/mde/ejs/blob/master/docs/syntax.md).\n\n## Includes\n\nIncludes either have to be an absolute path, or, if not, are assumed as\nrelative to the template with the `include` call. For example if you are\nincluding `./views/user/show.ejs` from `./views/users.ejs` you would\nuse `<%- include('user/show') %>`.\n\nYou must specify the `filename` option for the template with the `include`\ncall unless you are using `renderFile()`.\n\nYou'll likely want to use the raw output tag (`<%-`) with your include to avoid\ndouble-escaping the HTML output.\n\n```ejs\n<ul>\n  <% users.forEach(function(user){ %>\n    <%- include('user/show', {user: user}) %>\n  <% }); %>\n</ul>\n```\n\nIncludes are inserted at runtime, so you can use variables for the path in the\n`include` call (for example `<%- include(somePath) %>`). Variables in your\ntop-level data object are available to all your includes, but local variables\nneed to be passed down.\n\nNOTE: Include preprocessor directives (`<% include user/show %>`) are\nstill supported.\n\n## Custom delimiters\n\nCustom delimiters can be applied on a per-template basis, or globally:\n\n```javascript\nlet ejs = require('ejs'),\n    users = ['geddy', 'neil', 'alex'];\n\n// Just one template\nejs.render('<?= users.join(\" | \"); ?>', {users: users}, {delimiter: '?'});\n// => 'geddy | neil | alex'\n\n// Or globally\nejs.delimiter = '$';\nejs.render('<$= users.join(\" | \"); $>', {users: users});\n// => 'geddy | neil | alex'\n```\n\n## Caching\n\nEJS ships with a basic in-process cache for caching the intermediate JavaScript\nfunctions used to render templates. It's easy to plug in LRU caching using\nNode's `lru-cache` library:\n\n```javascript\nlet ejs = require('ejs'),\n    LRU = require('lru-cache');\nejs.cache = LRU(100); // LRU cache with 100-item limit\n```\n\nIf you want to clear the EJS cache, call `ejs.clearCache`. If you're using the\nLRU cache and need a different limit, simple reset `ejs.cache` to a new instance\nof the LRU.\n\n## Custom file loader\n\nThe default file loader is `fs.readFileSync`, if you want to customize it, you can set ejs.fileLoader.\n\n```javascript\nlet ejs = require('ejs');\nlet myFileLoad = function (filePath) {\n  return 'myFileLoad: ' + fs.readFileSync(filePath);\n};\n\nejs.fileLoader = myFileLoad;\n```\n\nWith this feature, you can preprocess the template before reading it.\n\n## Layouts\n\nEJS does not specifically support blocks, but layouts can be implemented by\nincluding headers and footers, like so:\n\n\n```ejs\n<%- include('header') -%>\n<h1>\n  Title\n</h1>\n<p>\n  My page\n</p>\n<%- include('footer') -%>\n```\n\n## Client-side support\n\nGo to the [Latest Release](https://github.com/mde/ejs/releases/latest), download\n`./ejs.js` or `./ejs.min.js`. Alternately, you can compile it yourself by cloning\nthe repository and running `jake build` (or `$(npm bin)/jake build` if jake is\nnot installed globally).\n\nInclude one of these files on your page, and `ejs` should be available globally.\n\n### Example\n\n```html\n<div id=\"output\"></div>\n<script src=\"ejs.min.js\"></script>\n<script>\n  let people = ['geddy', 'neil', 'alex'],\n      html = ejs.render('<%= people.join(\", \"); %>', {people: people});\n  // With jQuery:\n  $('#output').html(html);\n  // Vanilla JS:\n  document.getElementById('output').innerHTML = html;\n</script>\n```\n\n### Caveats\n\nMost of EJS will work as expected; however, there are a few things to note:\n\n1. Obviously, since you do not have access to the filesystem, `ejs.renderFile()` won't work.\n2. For the same reason, `include`s do not work unless you use an `include callback`. Here is an example:\n  ```javascript\n  let str = \"Hello <%= include('file', {person: 'John'}); %>\",\n      fn = ejs.compile(str, {client: true});\n\n  fn(data, null, function(path, d){ // include callback\n    // path -> 'file'\n    // d -> {person: 'John'}\n    // Put your code here\n    // Return the contents of file as a string\n  }); // returns rendered string\n  ```\n\nSee the [examples folder](https://github.com/mde/ejs/tree/master/examples) for more details.\n\n### IDE Integration with Syntax Highlighting\n\nVSCode:Javascript EJS by *DigitalBrainstem*\n\n## Related projects\n\nThere are a number of implementations of EJS:\n\n * TJ's implementation, the v1 of this library: https://github.com/tj/ejs\n * Jupiter Consulting's EJS: http://www.embeddedjs.com/\n * EJS Embedded JavaScript Framework on Google Code: https://code.google.com/p/embeddedjavascript/\n * Sam Stephenson's Ruby implementation: https://rubygems.org/gems/ejs\n * Erubis, an ERB implementation which also runs JavaScript: http://www.kuwata-lab.com/erubis/users-guide.04.html#lang-javascript\n * DigitalBrainstem EJS Language support: https://github.com/Digitalbrainstem/ejs-grammar\n\n## License\n\nLicensed under the Apache License, Version 2.0\n(<http://www.apache.org/licenses/LICENSE-2.0>)\n\n- - -\nEJS Embedded JavaScript templates copyright 2112\nmde@fleegix.org.\n",
     63   "readmeFilename": "README.md",
     64   "repository": {
     65     "type": "git",
     66     "url": "git://github.com/mde/ejs.git"
     67   },
     68   "scripts": {
     69     "postinstall": "node ./postinstall.js",
     70     "test": "mocha"
     71   },
     72   "version": "3.0.1"
     73 }