npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

timely-newz

v1.0.3

Published

All types of news including cricket,national,business etc are available over a command

Downloads

7

Readme

timely-newz npm

Short News Api, For educational purposes only. News are from inshorts and 60secondsnow

install

npm install timely-newz

Usage

const newz = require('timely-newz');

newz.getNewz(specs, callback);

Example

const newz = require('timely-newz');

let specs = {
    lang: 'en',
    category: '',
    count: 2
}

newz.getNewz(specs, function (result) {
    console.log(result);
});

Languages (lang)

|Hindi|English| |---|---| |hi|en|

Category

|category|code| |---|---| |All News|leave it blank : ' '| |India|national| |World|world| |Bussiness|bussiness| |Sports|sports| |Politics|politics| |Technology|technology| |Startup|startup| |Entertainment|entertainment| |Science|science| |Automobile|automobile|

Return Format

[
  {
    sourceURL: 'https://twitter.com/ANI/status/1388430583781593088',
    imageLink: 'https://static.inshorts.com/inshorts/images/v1/variants/jpg/m/2021/05_may/1_sat/img_1619866358726_106.jpg?',
    title: 'Give Delhi its full 490 MT oxygen quota today by whatever means: HC to Centre',
    author: 'Sakshita Khosla',
    content: `The Delhi High Court on Saturday directed the Centre to ensure that Delhi received its full allocated quota of 490 Metric Tonnes (MT) of oxygen today "by whatever 
means". "Now the water has gone above our heads," said the High Court bench to Centre's counsel, adding, "You (Centre) will arrange everything now."`,
    newzTime: '04:36 pm 01 May'
  },
  {
    sourceURL: 'https://www.thenewsminute.com/article/telangana-health-minister-eatala-rajender-removed-after-allegations-land-grabbing-148130',
    imageLink: 'https://static.inshorts.com/inshorts/images/v1/variants/jpg/m/2021/05_may/1_sat/img_1619862427860_905.jpg?',
    title: 'Telangana Health Minister removed from post following land grab allegations',
    author: 'Sakshita Khosla',
    content: "Telangana Health Minister Eatala Rajender was removed from the post on Saturday after allegations of land grabbing emerged against him. The state's Health, Medical and Family Welfare portfolio was transferred to CM K Chandrashekar Rao after the Governor approved Rao's request. Several farmers from the Medak district have accused Rajender 
of forcibly occupying their land.",
    newzTime: '03:29 pm 01 May'
  }
]