</>PackageGraphPackageGraph

levn

npmv0.4.1

Light 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.

2
Direct dependencies

Runtime packages this one declares itself.

2
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

81 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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'
Example truncated — see the full README.

levn vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
levnthis page02MIT6 years ago
type-fest337.8M6(MIT OR CC0-1.0)1 day ago
eslint138.4M279MIT1 day ago
fast-json-stable-stringify137.5M2MIT1 day ago
es-define-property131.3M4MIT1 day ago
diff124.1M4BSD-3-Clause1 day ago

Dependencies

Declared by levn v0.4.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

livescript ^1.6.0mocha ^7.1.1

Used by

Popular packages that depend on levn.

Relationship graph

Dependencies (left) and dependents (right) of levn.

Frequently installed together

Release history

No releases in the last two years, typically about 25 days apart.

Recent versions of levn
VersionPublishedSizeLicense
0.4.1latest6 years ago24 KBMIT
0.4.06 years ago24 KBMIT
0.3.010 years agoMIT
0.2.512 years agoMIT
0.2.412 years agoMIT
0.2.312 years agoMIT
0.2.212 years agoMIT
0.2.112 years agoMIT
0.2.013 years agoMIT
0.1.013 years agoMIT

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

Keywords

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.