JSPM

get-imports

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 33073
  • Score
    100M100P100Q144544F
  • License MIT

Get CSS @imports from a string

Package Exports

  • get-imports

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-imports) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

get-imports Build Status

Get CSS @imports from a string

Install

$ npm install --save get-imports

Usage

var getImports = require('get-imports');
var str = '@import url(\'foo.css\'); foo @import url(\'bar.css\'); bar';

getImports(str);
//=> ['@import url('foo.css');', '@import url('bar.css');']

License

MIT © Kevin Mårtensson