open-index/open-npm huggingface dataset:
npm package: @jdslv/posthtml-inline-css
Description: PostHTML CSS Inliner
Author: Kirill Maltsev
Latest version: 2.0.1

# @jdslv/posthtml-inline-css [![npm version](https://badge.fury.io/js/@jdslv%2Fposthtml-inline-css.svg)](https://www.npmjs.com/package/@jdslv/posthtml-inline-css) [![Build Status](https://gitlab.com/jdslv/posthtml-inline-css/badges/main/pipeline.svg)](https://gitlab.com/jdslv/posthtml-inline-css/-/pipelines)

[PostHTML](https://github.com/posthtml/posthtml) plugin for inlining CSS to style attrs.

Many modern email clients nowadays support CSS in a `<style>`, so you might not need to inline CSS.
See [that discussion](https://github.com/posthtml/posthtml-inline-css/issues/14).

## Usage

### Plain CSS

```js
import inlineCSS from '@jdslv/posthtml-inline-css';
import posthtml from 'posthtml';

const css = 'div { color: red }';
const result = await posthtml([inlineCSS(css)]).process('<div style="font-size: 14px">Hello!</div>');

console.log(result.html);
// <div style="font-size: 14px; color: red">Hello!</div>
```

### &lt;style&gt;

```js
import inlineCSS from '@jdslv/posthtml-inline-css';
import posthtml from 'posthtml';

const html = '<style>div { color: red }</style><div>Hello!</div>';

const result = await posthtml([inlineCSS()]).process(html);

console.log(result.html);
// <style>div { color: red }</style><div style="color: red">Hello!</div>
```

### PostCSS

```js
import inlineCSS from '@jdslv/posthtml-inline-css';
import postcss from 'postcss';
import posthtml from 'posthtml';

const postcssObj = await postcss(/* some PostCSS plugins */).process('div { color: white }');

const result = await posthtml([inlineCSS(postcssObj)]).process('<div style="font-size: 14px">Hello!</div>');

console.log(result.html);
// <div style="font-size: 14px; color: white">Hello!</div>
```
npm package: @jdsp/jp-install-service
Description: Tool for speeding up Linux service development.
Author: Jonathan Pugh
Latest version: 0.0.1

# Installation

Install this npm package globally:

```
$ npm install --global @jdsp/install-service
```

Update it using:

```
$ npm update --global @jdsp/install-service
```

# Usage

Install Linux services from service files located in the current working directory. The command will symlink the service files to the correct system location (/etc/systemd/system/). It will also enable and restart the services and show you the installation logs. Your service files must have the postfix ".service" to be found and installed e.g.:

```
$ ls
my.service
$ jp-install-service
```

# Why?

I have quite a few projects that run as services on my servers and this package comes in handy to install, enable and test them quickly directly from the source directories. I'm consolidating all my code into npms for consistency and managability.