Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sheetify

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sheetify

Modular CSS bundler

  • 3.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
137
decreased by-2.84%
Maintainers
2
Weekly downloads
 
Created
Source

sheetify

sheetify logo

NPM version build status Test coverage Downloads js-standard-style

Modular CSS bundler. Works with npm modules like browserify does.

Features

  • rich plugin ecosystem
  • namespaced CSS modules using browserify
  • tiny API surface
  • [WIP] works with LESS, SASS and regular CSS (CSS only right now)
  • [WIP] pass global variables into packages

Installation

$ npm install sheetify

As a standalone package

js api

const sheetify = require('sheetify')
const path = require('path')

const opts = {
  use: [ [ 'sheetify-cssnext', { sourcemap: false } ] ],
  basedir: __dirname
}

sheetify(path.join(__dirname, 'index.css'), opts, function (err, css) {
  if (err) throw err
  console.log(css)
})

js stream api

const sheetify = require('sheetify/stream')
const path = require('path')

const opts = {
  use: [ [ 'sheetify-cssnext', { sourcemap: false } ] ],
  basedir: __dirname
}

sheetify(path.join(__dirname, 'index.css'), opts)
  .pipe(process.stdout)

cli api

Usage: sheetify [options] <target>

Options:
  -h, --help        Output usage information
  -v, --version     Output version number
  -u, --use         Use a sheetify transform
  -b, --basedir     Set the project base directory

Examples:
  $ sheetify index.js > bundle.css          # Bundle CSS to a file
  $ sheetify -u sheetify-cssnext index.js   # Use a transform

Docs: https://github.com/sheetify/sheetify
Bugs: https://github.com/sheetify/sheetify/issues

As a browserify transform

js api

const browserify = require('browserify')
const path = require('path')

browserify(path.join(__dirname, './index.js'))
  .transform('sheetify/transform')
  .bundle()
  .pipe(process.stdout)

package.json transform

{
  "name": "my-app",
  "browserify":{
    "transform": [
      "sheetify/transform"
    ]
  }
}

cli

$ browserity -t sheetify/transform index.js > bundle.js

Plugins

License

MIT

Keywords

FAQs

Package last updated on 11 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc