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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@lskjs/env

v3.18.0

Published

LSK.js – env – Scripts for environment detecton

Downloads

1,614

Readme

LSK.js – env

@lskjs/env – LSK.js – env – Scripts for environment detecton

LSK logo NPM version NPM downloads NPM Dependency count Have TypeScript types Have tree shaking NPM Package size Package size Ask us in Telegram


Table of contents

⌨️ Install

# yarn
yarn i @lskjs/env 

# npm
npm i @lskjs/env 

First principles

  • Асинхронность все везде
  • Ленивость всех операций
  • Декларативный подход для конечного программиста

Манифест

Стандарт бы и 5 лет назад, но авангардисты JS создали coffescript, babel и ts, потому что JS окостенел и не двигался. Так же как и ВКшники написали свой KPHP. 

В этом пути нет ничего постыдного, то что еще вчера считалось ебанистикой, завтра может захватить умы своим удобством.

У меня нет априорной аппеляции к авторитетам из ECMA. 

Я делаю среду комфортную для конечного программиста, который делает продукт для клиента. 
Если стандарт позволяет написать удобное решение — то придумаем как.
Если для этого придется переписать стандарт — значит перепишем. 
Благо babel максимальным образом позволяет писать собственные диалекты.

Не задача должна прогибаться под решением, а решение под задачу.

Вопросы на которые стоит ответить создателю:

  • Пример Api на бэке handler
  • Пример функции и как ее переопределить
  • Модели монго как подключить
  • Как достать, когда пишешь Api
  • Роутер добавление роута и страницы
  • CrudApi основные методы
  • Как оборачивать ответ сервера, чтобы вернулся объект
  • Как сделать свой стор
  • Как достать стор на странице

Как запускать любой lsk-образный проект

  1. git clone repo
  2. npm install
  3. npm run bootstrap
  • copy .env.js if needed
  • npm run dev or
  • cd packages/package && npm run dev

Packages included in this repo

| Package | Description | Activity | Version | Bundle | Package Size | -------------------- | --------------- | -------- | ------- | ------ | ------------------------- | apiquery | http/s + websockets api client for Web, Node.js and React Native throw fetch or axios | NPM Badge | NPM Badge | NPM Badge | install size | apm | LSK.js – apm – module Node.js agent for Elastic APM | NPM Badge | NPM Badge | NPM Badge | install size | auth | LSK.js – auth – module for authorization by login and password and singup through social networks | NPM Badge | NPM Badge | NPM Badge | install size | autobind | LSK ux subrepo: autobind | NPM Badge | NPM Badge | NPM Badge | install size | billing | LSK.js module for adding billing in cabinet | NPM Badge | NPM Badge | NPM Badge | install size | bots | LSK.js module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-base | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-plugin | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-plugin-debug | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-plugin-menu | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-plugin-notify | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-plugin-polundra | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-plugin-portal | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-provider | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-provider-clubhouse | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-provider-discord | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-provider-instagram | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-provider-slack | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-provider-telegram | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-provider-twitter | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-provider-vk | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-provider-whatsapp | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | bots-router | LSK.js router for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation | NPM Badge | NPM Badge | NPM Badge | install size | build-locales | CLI for build i18 locales from Google spreadsheet | NPM Badge | NPM Badge | NPM Badge | install size | bunyan | Light weight bunyan logger for a JSON logging library for node.js services without dtrace | NPM Badge | NPM Badge | NPM Badge | install size | config | LSK config. | NPM Badge | NPM Badge | NPM Badge | install size | db | LSK.js module for working with mongodb database | NPM Badge | NPM Badge | NPM Badge | install size | elastic | LSK.js module for elastic search | NPM Badge | NPM Badge | NPM Badge | install size | event | LSK module for event. | NPM Badge | NPM Badge | NPM Badge | install size | getspreadsheet | LSK getspreadsheet. | NPM Badge | NPM Badge | NPM Badge | install size | grant | LSK module for grant. | NPM Badge | NPM Badge | NPM Badge | install size | i18 | LSK module for internationalization with i18next. | NPM Badge | NPM Badge | NPM Badge | install size | kafka | LSK module for kafka. | NPM Badge | NPM Badge | NPM Badge | install size | launcher | LSK Launcher. | NPM Badge | NPM Badge | NPM Badge | install size | linkall | LSK link all. | NPM Badge | NPM Badge | NPM Badge | install size | log | LSK log. | NPM Badge | NPM Badge | NPM Badge | install size | log | Логгер совмещающий лучшие черты morgan, winston, bunyan, logrus. debug. Базируется на debug-level. | NPM Badge | NPM Badge | NPM Badge | install size | mailer | LSK module for send and receive emails. | NPM Badge | NPM Badge | NPM Badge | install size | mobx | LSK module for mobx. | NPM Badge | NPM Badge | NPM Badge | install size | module | Module system with dependency injection, event emitter, logger and submodules tree | NPM Badge | NPM Badge | NPM Badge | install size | permit | LSK module for one time codes and permits. | NPM Badge | NPM Badge | NPM Badge | install size | proxy | LSK module for proxy. | NPM Badge | NPM Badge | NPM Badge | install size | rabbit | LSK module for rabbit. | NPM Badge | NPM Badge | NPM Badge | install size | reactapp | LSK ux subrepo: reactapp | NPM Badge | NPM Badge | NPM Badge | install size | rlog | LSK module for remote logger. | NPM Badge | NPM Badge | NPM Badge | install size | scylla | LSK module for scylla. | NPM Badge | NPM Badge | NPM Badge | install size | sequelize | LSK module for sequelize. | NPM Badge | NPM Badge | NPM Badge | install size | server | LSK server. | NPM Badge | NPM Badge | NPM Badge | install size | server-api | LSK server-api. | NPM Badge | NPM Badge | NPM Badge | install size | sh | LSK ux subrepo: sh | NPM Badge | NPM Badge | NPM Badge | install size | sms | LSK module for sms. | NPM Badge | NPM Badge | NPM Badge | install size | tbot | LSK module. | NPM Badge | NPM Badge | NPM Badge | install size | uapp | LSK universal react app wrapper | NPM Badge | NPM Badge | NPM Badge | install size | upload | LSK module for uploading files. | NPM Badge | NPM Badge | NPM Badge | install size | utils | LSK.js – utils – helpers and functions | NPM Badge | NPM Badge | NPM Badge | install size | worker | LSK module for worker. | NPM Badge | NPM Badge | NPM Badge | install size | add-to-calendar | LSK ux subrepo: extra | NPM Badge | NPM Badge | NPM Badge | install size | article | LSK ux subrepo: article | NPM Badge | NPM Badge | NPM Badge | install size | avatar | LSK ux subrepo: avatar | NPM Badge | NPM Badge | NPM Badge | install size | button | LSK ux subrepo: button | NPM Badge | NPM Badge | NPM Badge | install size | button2 | LSK ux subrepo: button | NPM Badge | NPM Badge | NPM Badge | install size | chat | LSK ux subrepo: chat | NPM Badge | NPM Badge | NPM Badge | install size | cookie-consent | LSK ux subrepo: cookie-consent | NPM Badge | NPM Badge | NPM Badge | install size | css | LSK ux subrepo: css | NPM Badge | NPM Badge | NPM Badge | install size | dash | LSK.js – Dash – React components for your own dashboard | NPM Badge | NPM Badge | NPM Badge | install size | dashboard | LSK ux subrepo: dashboard | NPM Badge | NPM Badge | NPM Badge | install size | dev | LSK ux subrepo: ui-dev | NPM Badge | NPM Badge | NPM Badge | install size | docs | lskjs docs | NPM Badge | NPM Badge | NPM Badge | install size | downloads | LSK ux subrepo: download | NPM Badge | NPM Badge | NPM Badge | install size | extra | LSK ux subrepo: extra | NPM Badge | NPM Badge | NPM Badge | install size | flag | LSK ux subrepo: flag | NPM Badge | NPM Badge | NPM Badge | install size | form | LSK ux subrepo: form | NPM Badge | NPM Badge | NPM Badge | install size | grid | LSK ux subrepo: grid | NPM Badge | NPM Badge | NPM Badge | install size | gridtable | LSK ux subrepo: gridtable | NPM Badge | NPM Badge | NPM Badge | install size | image | LSK ux subrepo: image | NPM Badge | NPM Badge | NPM Badge | install size | landing | LSK ux subrepo: landing | NPM Badge | NPM Badge | NPM Badge | install size | link | LSK ux subrepo: link | NPM Badge | NPM Badge | NPM Badge | install size | list | LSK ux subrepo: list | NPM Badge | NPM Badge | NPM Badge | install size | modal | LSK ux subrepo: modal | NPM Badge | NPM Badge | NPM Badge | install size | navbar | LSK ux subrepo: navbar | NPM Badge | NPM Badge | NPM Badge | install size | notification | LSK ux subrepo: notification | NPM Badge | NPM Badge | NPM Badge | install size | page | LSK ux subrepo: page | NPM Badge | NPM Badge | NPM Badge | install size | progress | LSK ux subrepo: progress | NPM Badge | NPM Badge | NPM Badge | install size | scroll | LSK ux subrepo: scroll | NPM Badge | NPM Badge | NPM Badge | install size | slide | LSK ux subrepo: slide | NPM Badge | NPM Badge | NPM Badge | install size | t | LSK ux subrepo: t | NPM Badge | NPM Badge | NPM Badge | install size | tag | LSK ux subrepo: tag | NPM Badge | NPM Badge | NPM Badge | install size | theme | LSK ux subrepo: theme | NPM Badge | NPM Badge | NPM Badge | install size | typo | LSK ux subrepo: typo | NPM Badge | NPM Badge | NPM Badge | install size | ui | LSK ux subrepo: ui | NPM Badge | NPM Badge | NPM Badge | install size | ui2 | LSK ux subrepo: ui2 | NPM Badge | NPM Badge | NPM Badge | install size

Вдохновлен:

  • Express.js: концепция средних слоев, способ их конфигурирования
  • Sails.js & Grails.js
  • Loopback
  • https://github.com/developit/express-es6-rest-api/
  • react-starter-kit: Фронт, Сборка на ES6 без Gulp, Grunt. Конфиг webpack'а
this.useMiddlewares()
this.useRoutes()
this.useDefaultRoute()

А также:

  • Express async router
  • Json Web Token
  • Bunyan logger with updated view

A