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

yang-policies

v0.1.1

Published

A consumable JSON list of Andrew Yang's 2020 policies found on yang2020.com

Downloads

6

Readme

Andrew Yang's 2020 Policies (yang-policies)

Build Status Yang Gang Badge

A consumable JSON list of Andrew Yang's 2020 policies found on yang2020.com

Despite the tremendous amount of policies from Andrew Yang's campaign, I couldn't manage to find any API's providing this information. So I built this JSON list from a simple script that crawls and scrapes yang2020.com to create an JSON formatted list of Andrew Yang's policies to be used for any potential software projects.

Install

$ npm install yang-policies

Usage

The JSON file is located in /policies.json, which can be downloaded and used externally.

const yangPolicies = require('yang-policies');

yangPolicies[0] // First Policy is The Freedom Dividend

API

yangPolicies

Returns JSON list of all policies

yangPolicies.count

Returns number of Andrew Yang's policies

yangPolicies.featured()

Returns Andrew Yang's 3 big policies

Policy Object

| Key | Type | Description | Example | | --------------------- | --------- | --------------------------------------------------- | ------------------------------------------------------------ | | title | string | Title of the policy | The Freedom Dividend | | url | string | Url to the policy page | https://www.yang2020.com/policies/the-freedom-dividend/ | | description | string | Description of policy | Andrew would implement the Freedom Dividend, a universal basic income of $1,000/month,... | | problems_to_be_solved | array | A list of problems to be solved by policy | [ "Approx. 40 million Americans live below the poverty line.", " "It is necessary to support and preserve a robust consumer economy."] | | goals | array | Goals to accomplish by policy | ["End poverty in the most direct manner possible: giving people money", "Allow people the freedom to switch jobs, move, innovate, and contribute to society"] | | as_president | string | Andrew Yang's as president message regarding policy | "As President, I will…\n\n Implement the Freedom Dividend, providing Universal Basic Income of $1,000/month to all American adults over the age of 18 so that we may all share in the prosperity we have contributed to and participate in the new economy."" | | citations | array | A list of additional citations | [{}] | | citations[0].author | string | Author of Citation | Thomas Paine, 1796 | | citations[0].quote | string | Quote of citation | "Out of a collected fund from landowners, “there shall be paid to every person…"..." | | excerpt | string | Excerpt regarding policy | "Universal Basic Income, or UBI, is a version of Social Security where all citizens..." |

Note, some fields are null or empty if not available.

Policy Example:

 {
    "title": "Promote Vocational Education",
    "url": "https://www.yang2020.com/policies/promoting-vocational-education/",
    "description": "It seems we’re preparing our children for college earlier and earlier. College readiness is a driving force behind many educational decisions in this country. This has resulted in only 6% of American high school students being enrolled in a vocational program (in 2013), whereas comparable European nations have numbers closer to 50%.\nFor those that do start college, graduating isn’t a sure thing. 6 years after first enrolling, fewer than 60% of students have attained a degree. If you look at only open-admissions schools, the number drops to 32%. That represents a huge investment of money and time on the part of Americans that doesn’t lead them to a positive outcome.\nOn the other side, the underemployment rate for recent college grads is approaching 44%, and one-third end up in jobs that don’t require the degree they earned.\n\n College is being over-prescribed in this country. Not everyone has an interest in obtaining a college degree, and there are many jobs out there that don’t require it. Georgetown has estimated that there are 30 million good-paying jobs that don’t require a college degree. Most require some type of specialized training.\nAs a country, we need to dramatically increase our investment in vocational training, providing a viable career path for those students who are more interested in starting their careers immediately after high school instead of continuing with an education they don’t want but feel obligated to get.",
    "problems_to_be_solved": [
      "Too many students invest in college when it’s not the right investment for them.",
      "Too few students are aware of alternative career paths, or lack access to training for those paths.",
      "Some feel there is a stigma attached to vocational jobs."
    ],
    "main_quote": "There are tens of millions of jobs that will be with us for decades that don’t require a college degree: machinists, line repair, air-conditioning repair, exterminator, high-end manufacturing, and so on. We need to remove any stigma from vocational education and dramatically increase its visibility and availability. Apprenticeships should be a big part of the future of education for millions of Americans that would give them a runway to a fulfilling livelihood.",
    "goals": [
      "Increase vocational training options in public schools",
      "Counsel students on the right path for them based on their interests and career goals"
    ],
    "as_president": "As President, I will…\n\n Increase funding to vocational programs within public schools.\nDirect the Dept. of Education to provide materials to all public schools about career paths that don’t require a college degree.\nPrioritize career paths that students express interest in rather than giving blanket advice that college is the right/only option.\nBegin a public education campaign championing vocational jobs and education, “I Work With My Hands – And It’s Awesome.”",
    "excerpt": null,
    "citations": []
}

Contribute

Open to PR's to improve the JSON formatting, code quality, different file formats, tests, etc.

Build the JSON file with, npm run build-json.

License

The use of this module falls under MIT, use it to build and progress the Yang Gang.

If it isn't apparent, actual policy content belongs to yang2020.com.