objectid-js

This is an implementation of ObjectId in pure JS.

Usage no npm install needed!

<script type="module">
  import objectidJs from 'https://cdn.skypack.dev/objectid-js';
</script>

README

This is an implementation of ObjectId in pure javascript. MachineId is persistant across a single domain via html5 LocalStorage with a fallback to cookies. Something like evercookie could be used to make a more persistant machineId. However, this is not the intention of this implementation.

Copyright 2011-2014 Justin Dearing zippy1981@gmail.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 or MIT License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.