How to use the doiuse.default function in doiuse

To help you get started, we’ve selected a few doiuse examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github anandthakker / doiuse.com / lib / css-features.js View on Github external
var JSONStream = require('JSONStream')
var pipe = require('mississippi').pipe
var through = require('mississippi').through
var fromString = require('from2-string')
var styles = require('style-stream')
var next = require('next-stream')
var doiuse = require('doiuse/stream')
var defaultBrowsers = require('doiuse').default

var prune = require('./prune')
var unique = require('./unique')
var limitstream = require('./limit')

/*
* options must have either `url` or `css`.
*/
module.exports = function cssFeatures (args, res) {
  res.setHeader('Content-Type', 'application/json')
  res.setHeader('Access-Control-Allow-Origin', '*')

  var url = args.url || ''
  var css = args.css || ''
  var browsers = args.browsers || ''

doiuse

Lint CSS for browser support against caniuse database

MIT
Latest version published 2 months ago

Package Health Score

84 / 100
Full package analysis

Popular doiuse functions