Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 251 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 251 Bytes

privsym

Create private, unenumerable symbols in Node.js

Usage

const PrivateSymbol = require('privsym');

const mySym = PrivateSymbol('mySym');

const obj = {
  [mySym]: 'foo'
};

// etc.

License

The MIT License. See LICENSE.txt