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 🙏

© 2025 – Pkg Stats / Ryan Hefner

minimalist-notation

v1.11.20

Published

Minimalist Notation

Readme

Русский

Minimalist Notation

This is the best CSS framework and CSS-preprocessing technology that you will not be able to part with.

Minimalist Notation (MN) is a technology for generating styles based on parsing the markup. In the current version for web applications, the generation is done directly in the CSS. Technology tremendously speeds up the layout process and can be used additionally with traditional technologies, or replace completely those.

The advantage over the traditional technologies of CSS-preprocessing is that the developer gets rid of the need to write CSS. CSS is generated automatically based on the notation and the style generate rules specified by the developer. The developer no longer needs to control which styles are used in his markup and which ones are not, for from now on the styles are generated dynamically only for what is present in the markup.

Example

Input:

<div class="f12 p10 mb10 f14:h cF00<.parent c0F0@mediaName sq40 bg0F0">...</div>

Output:

@media mediaName{
  .c0F0\@mediaName{color:rgb(0,255,0)}
}
.f12{font-size:12px}
.f14\:h:hover{font-size:14px}
.parent .cF00\<\.parent{color:rgb(255,0,0)}
.bg0F0{background:rgb(0,255,0)}
.sq40{width:40px;height:40px}
.p10{padding:10px}
.mb10{margin-bottom:10px}

Try this tests:

  • https://jsfiddle.net/dzgj2sL3/
  • https://jsfiddle.net/j6d8aozy/46/

Home page: http://minimalist-notation.org

The starter build with Webpack: https://github.com/mr-amirka/mn-get-started

I would be grateful for your feedback and comments. Write me in a telegram.
With love, your mr.Amirka :)

Are you interested in the development of this project? Do your bit.

CLI

npm install -g mn-cli
mn --compile ./src --output ./dist/styles.css

More about CLI

Usage with Webpack

npm install mn-loader --save-dev
const { MnPlugin } = require('minimalist-notation/webpack-loader');

module.exports = {
  /* ... */
  module: {
    rules: [
      { // for hot-reload MN presets (but cached including)
        test: /\.mn\.js$/,
        use: [
          {
            loader: 'minimalist-notation/webpack-loader/reload'
          }
        ]
      },
      {
        test: /\.jsx?$/,
        use: [
          {
            loader: "babel-loader",
            options: {
              /* ... */
            }
          },
          {
            loader: 'minimalist-notation/webpack-loader',
            options: {
              id: 'app',
              attrs: [ 'm' ]
            }
          }
        ]
      }
  },
  plugins: [
    new MnPlugin({
      id: 'app',
      attrs: [ 'm' ],
      output: './dist/app.css',
      template: './src/index.html',
      presets: [
        require('mn-presets/medias'),
        require('mn-presets/prefixes'),
        require('mn-presets/styles'),
        require('mn-presets/states'),
        require('mn-presets/theme'),
        require('./theme'),
      ]
    }),
    /* ... */
  ],
  /* ... */
};

Other

Runtime

const mn = require("minimalist-notation/browser")
  .setPresets([
    require('mn-presets/medias'),
    require('mn-presets/runtimePrefixes'),
    require('mn-presets/styles'),
    require('mn-presets/states'),
    require('mn-presets/theme')
  ]);
require('mn-utils/browser/ready')(() => {
  mn.getCompiler('m').recursiveCheck(document)
  mn.compile();

  console.log('minimalistNotation', mn.data);
});

Standalone

<script src="https://dartline.ru/assets/last-standalone-mn.js" async></script>

Integration

Integrating "Minimalist Notation" into Angular 6


import * as mn from 'minimalist-notation/browser';
import * as mnMedias from 'mn-presets/medias';
import * as mnPrefixes from 'mn-presets/runtimePrefixes';
import * as mnStyles from 'mn-presets/styles';
import * as mnStates from 'mn-presets/states';
import * as mnTheme from 'mn-presets/theme';

mn.setPresets([
  mnMedias,
  mnPrefixes,
  mnStyles,
  mnStates,
  mnTheme,
]);

//DIRECTIVES
import {MDirective} from 'angular-mn';

@NgModule({
  imports: [
    /* ... */
  ],
  declarations: [
    MDirective,
    /* ... */
  ],
  bootstrap: [
    //RootComponent
  ]
})
export class AppModule {}

Integrating "Minimalist Notation" into AngularJS


require("minimalist-notation/browser").setPresets([
  require('mn-presets/medias'),
  require('mn-presets/runtimePrefixes'),
  require('mn-presets/styles'),
  require('mn-presets/states'),
  require('mn-presets/theme')
]);

const app = angular.module('app', [ /* ...*/ ]);
require('angularjs-mn')(app);
//...


Integrating "Minimalist Notation" into React

Example:

// index.jsx
const React = require('react');
const { render } = require('react-dom');
const Root = require('./components/root');

require("minimalist-notation/browser").setPresets([
  require('mn-presets/medias'),
  require('mn-presets/runtimePrefixes'),
  require('mn-presets/styles'),
  require('mn-presets/states'),
  require('mn-presets/theme')
]);

require('mn-utils/browser/ready')(() => [].forEach.call(
  document.querySelectorAll('[root]'),
  node => render(<Root/>, node)
));


//root.jsx
const React = require('react');
const {Component} = React;
const MyComponent = require('./my-component');

class Root extends Component {
	render() {
		return (<MyComponent/>);
	}
}

module.exports = Root;


// my-component.jsx
const React = require('react');
const { Component } = React;

const {withMn, MnFrame} = require('react-mn');


class _MyComponent extends Component {
  render() {
    return (
      <div m="tbl c0F0 bg0 w h100vh tc f40">
        <div>
          <div>Hello React!</div>
          <MnFrame m="b0 bc00 bsSolid">
            <div m="sq10 bgF"></div>
          </MnFrame>
        </div>
      </div>
    );
  }
}

module.exports = withMn(_MyComponent);

PS: MnFrame - the component that is displayed in the iframe

Are you interested in the development of this project?

Contribute
Bitcoin address: 14j4euH5PNmKnyfYdDxeimTkd1hjdnx5W1
Ethereum address: 0xeae6bf266f2c361e3a02d74374722cec7f2d8836