npm

Need private packages and team management tools?Check out npm Orgs. »

mad-news

1.0.1 • Public • Published

Mad-News

Генератор новостей

Как пользоваться:

HTML:

  <script type="text/javascript" src="node_modules/mad-news/index.js"></script> 
  document.addEventListener('DOMContentLoaded', function (event) {
      var madness = new MadNews();
      document.querySelector('#stage_a0 p').innerText = madness.person;
      document.querySelector('#stage_b0 p').innerText = madness.action;
      document.querySelector('#stage_c0 p').innerText = madness.conclusion;
  });

Node.js (or modern frontend):

  var MadNews = require('mad-news');
  var Madness = new MadNews();
  
  console.log(Madness.person);
  console.log(Madness.action);
  console.log(Madness.conclusion);
  // or
  console.log(Madness.fullString);

install

npm i mad-news

Downloadsweekly downloads

0

version

1.0.1

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability