levn
npmv0.4.1Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
Not recommended for new projects
No — levn should not be adopted for new projects. Last published 2350 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 2350 days ago.
- AWeight: grade A, Excellent.
Pulls in 2 transitive packages, about 81 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding levn to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing levn, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 0.8.0
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the levn README.
var parse = require('levn').parse;
parse('Number', '2'); // 2
parse('String', '2'); // '2'
parse('String', 'levn'); // 'levn'
parse('String', 'a b'); // 'a b'
parse('Boolean', 'true'); // true
parse('Date', '#2011-11-11#'); // (Date object)
parse('Date', '2011-11-11'); // (Date object)
parse('RegExp', '/[a-z]/gi'); // /[a-z]/gi
parse('RegExp', 're'); // /re/
parse('Int', '2'); // 2
parse('Number | String', 'str'); // 'str'levn vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| levnthis page | 0 | 2 | MIT | 6 years ago |
| type-fest | 337.8M | 6 | (MIT OR CC0-1.0) | 1 day ago |
| eslint | 138.4M | 279 | MIT | 1 day ago |
| fast-json-stable-stringify | 137.5M | 2 | MIT | 1 day ago |
| es-define-property | 131.3M | 4 | MIT | 1 day ago |
| diff | 124.1M | 4 | BSD-3-Clause | 1 day ago |
Dependencies
Declared by levn v0.4.1. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Dev (2)
Used by
Popular packages that depend on levn.
Relationship graph
Dependencies (left) and dependents (right) of levn.
Frequently installed together
Runtime-agnostic core of ESLint
Wrap words to a specified length.
prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
node's assert.deepEqual algorithm except for NaN being equal to NaN
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Release history
No releases in the last two years, typically about 25 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.4.1latest | 6 years ago | 24 KB | MIT |
| 0.4.0 | 6 years ago | 24 KB | MIT |
| 0.3.0 | 10 years ago | — | MIT |
| 0.2.5 | 12 years ago | — | MIT |
| 0.2.4 | 12 years ago | — | MIT |
| 0.2.3 | 12 years ago | — | MIT |
| 0.2.2 | 12 years ago | — | MIT |
| 0.2.1 | 12 years ago | — | MIT |
| 0.2.0 | 13 years ago | — | MIT |
| 0.1.0 | 13 years ago | — | MIT |
Overview
levn is an npm package that light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible. It has 2 known dependents in the graph. The latest version is 0.4.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use levn?
No — levn should not be adopted for new projects. Last published 2350 days ago.
How do I install levn?
Run `npm install levn` to add levn to your npm project.
How many dependencies does levn have?
levn declares 4 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 81 KB on disk.
What license is levn released under?
levn is distributed under the MIT license.
How popular is levn?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on levn.
Is levn still maintained?
The most recent release of levn (v0.4.1) was published 6 years ago.
Does levn run install scripts?
No. levn does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.